Garry's Mod

Garry's Mod

Not enough ratings
Using custom weapons in GMW2019
By lambups
This guide will show you how to replace the TMBWBEC weapons of GMW2019 with whatever you want
   
Award
Favorite
Favorited
Unfavorite
Introduction
In this guide I will show you how to modify the gmod-mw-tables.lua file of GMW2019 by adding custom weapons to the list
Prepare this link for later, it's gonna be more than useful: https://pastebin.com/bwWUgJva
1. Setting up the file
First, open the pastebin link above and save it in your Garry's Mod addons folder like so:
It does not matter what you name the addon folder, as long as the addon can be loaded.
The name of the Lua file must be gmod-mw-tables.lua

After you're done, open the file in your favorite code editor.
2. Adding weapons

This is what you're going to see when you open the file. Scroll down until you see the MW.Primaries table.


Here you can modify the weapon selection, including the lethals, tacticals, pistols and primaries. You can modify the tables with a valid classname for a weapon.
3. Getting weapon classes
In order to get the classes of the weapons, you must go in Sandbox, open your spawnmenu, go to Weapons and choose the weapon. When you do that, you right-click the weapon and press Copy to clipboard


After you do that, the string might come out like "weapon_cod4_ak47". It will be different for you.
So what you want to do is put two quotation marks " ", put a comma after them, " ", then put the class of the weapon inbetween the quotation marks like so: "weapon_cod4_ak47",


It does not matter if you put the weapon in Primaries or Pistols. Heck, you can put a whole LMG as lethal equipment if you want that. Go crazy with it.
23 Comments
lambups  [author] 7 Sep, 2022 @ 10:07am 
time to get the fuck out of my comment section k1ngdill steam id STEAM_0:1:579788579
TheSniperCatt0 7 Sep, 2022 @ 8:25am 
fuck doge
TheSniperCatt0 2 Sep, 2022 @ 9:21am 
because it needs to be updated
Zobel "Schmidt" Montemayor 2 Sep, 2022 @ 8:47am 
yeah this doesn't work methinks
TheSniperCatt0 2 Sep, 2022 @ 6:29am 
dude update the article for the new format this clearly does not work
ProEasy 2 Sep, 2022 @ 4:29am 
ok, its bad(
lambups  [author] 2 Sep, 2022 @ 4:04am 
it... doesn't work like that
at all
ProEasy 2 Sep, 2022 @ 1:37am 
Maybe you need a .gma format
ProEasy 2 Sep, 2022 @ 1:33am 
format .lua
lambups  [author] 1 Sep, 2022 @ 8:18am 
format change?