• Undroppable weapons
    2 replies, posted
I host my succesfull darkrp server, but there are some problems, people are able to drop arrest sticks, keypad crackers, physguns etc. How do i exclude certains weapons from being dropped? thank you!
In your [B]config.lua[/B], change [B]GM.Config.restrictdrop[/B] from [B]false[/B] to [B]true[/B]. The core weapons(gravity & physics gun, arrest stick, unarrest stick, medic kit) are already blacklisted. If you want to blacklist more weapons, open up [B]main.lua[/B] and find the [B]DropWeapon[/B] function. There should be a table above it, called [B]NoDrop[/B]. Just add weapon names in there: [CODE]NoDrop = {"weapon_name_here", "weapon_name_here2", "etc"}[/CODE]
[QUOTE=DevilMarkes;39660821]In your [B]config.lua[/B], change [B]GM.Config.restrictdrop[/B] from [B]false[/B] to [B]true[/B]. The core weapons(gravity & physics gun, arrest stick, unarrest stick, medic kit) are already blacklisted. If you want to blacklist more weapons, open up [B]main.lua[/B] and find the [B]DropWeapon[/B] function. There should be a table above it, called [B]NoDrop[/B]. Just add weapon names in there: [CODE]NoDrop = {"weapon_name_here", "weapon_name_here2", "etc"}[/CODE][/QUOTE] Thank you it worked!
Sorry, you need to Log In to post a reply to this thread.