Hi, does anyone know how to avoid someone coming on your server and using weapon stripper? It's mother fucking annoying, I don't know how to patch it. Most likely citizen hack or alike involved.
Pretty standard exploit, there are already threads on here explaining how to fix it.
Please send <3
Copypasted my post from another thread:
you have a couple choices on how to deal with this exploit
option 1: disable the remover property,
go into darkrpmodification>lua>darkrpconfig>settings.lua>find "GM.Config.Allowedproperties">set remover to false
option 2: change FPP settings,
go into your server>hold Q>click utilities>under Falco's Prop Protection, click admin settings>
go to toolgun options>uncheck "people can use the tool on world entites"
option 3: create a script that uses SANDBOX/CanProperty
https://github.com/joeyjumper94/revenants_small_scripts/blob/master/lua/autorun/server/sv_nostrip.lua
hook.Add('CanProperty','nostrip',function(ply,property,ent)
if ent and ent:IsValid() and !ent:GetPhysicsObject():IsValid() and !ply:IsAdmin() then
--first 2 checks make sure the entity is valid, 3rd check sees if the ent has no physics object, such as a weapon, 4th check is if the player is not an admin
ply:PrintMessage(HUD_PRINTTALK,'you connot use "'..property..'" on "'..ent:GetClass()..'"!')
return false
end
end)
i never really believed in anti cheat software, it's best to have important checks done serverside and have competent admins to watch for cheaters.
Cake anti cheat becomes more lax towards clientside lua execution if sv_allowcslua is set to 1.
new server owners may not realize that darkrp will set sv_allowcslua to 1 unless GM.Config.DisallowClientsideScipts is set to true, in which case it'll set sv_allowcslua to 0.
where to put script
if you want to use option 3 then create a lua file in
garrysmod/lua/autorun
then past the code into it
Sorry, you need to Log In to post a reply to this thread.