Garry's Mod

Garry's Mod

27 ratings
[LazMod] Weapon Restrict
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Realism
File Size
Posted
6.519 KB
22 Aug, 2022 @ 1:26pm
1 Change Note ( view )

Subscribe to download
[LazMod] Weapon Restrict

In 1 collection by LaZycAt
LaZycAt's simple addons
13 items
Description
What does it do?
Its a light weight addon controlled just by convars
that will lock up specific weapons which prevents non-admins to use them,
for example the notorious pist_weapon and m9k_davy_crockett

should be compatible with most Admin Mods?


How does it works?
Theres 3 layer protection to prevent players to use disallowed weapons
  • Prevent pick up from ground
  • Prevent switch to it (If he had one in inventory)
  • Drop and remove if equiped (if he somehow managed to pull it out)

Server ConVars
lm_wepres_enabled - 0/1 (default: 1)
Enables the addon. 0=disable, 1=enable

lm_wepres_sa - 0/1 (default: 1)
Should check on admins or superadmins. 0=admins, 1=superadmins

lm_wepres_weps - 'ClassName' (default: 'pist_weagon,m9k_orbital_strike,m9k_davy_crockett' )
The list that disallows, seperate with , comma
8 Comments
LaZycAt  [author] 16 Feb, 2024 @ 12:20am 
> @CCVV
either you remove the weapon name from lm_weepres_weps, or simply lm_wepres_enabled 0 to disable the addon
CCVV 13 Feb, 2024 @ 5:55am 
how un restrict
LaZycAt  [author] 5 Feb, 2024 @ 3:49pm 
> @Michałki

type lm_wepres_weps weapon command in the console,
for example you wanna ban the weapon_pistol , type:
lm_wepres_weps weapon_pistol

if you wanna ban multiple weapons, use comma:
lm_wepres_weps weapon_pistol,weapon_crossbow
Michałki 5 Feb, 2024 @ 11:32am 
how does this work can somebody explain i dont udnerstand
terra 18 Jul, 2023 @ 11:25am 
thanks i always had annoying friend that would use overpowerred weapons
snooser 21 Sep, 2022 @ 2:55pm 
thank you so much
Memerman 23 Aug, 2022 @ 9:02am 
thanks mate
sebastianreddream 23 Aug, 2022 @ 12:27am 
good addon and i haven't tried it yet