Hello, Recently (for 3 days now) I have been having an issue where randomly all players weapons will be stripped, the HUD will disappear, and all Props on the map will be deleted, both world and player props. I have deleted everything from my server thats been added in the past 2 weeks still with no luck. I have scanned the server for backdoors with nomalua, nothing out of the ordinary. I run a DarkRP server and have been running it for 2 years and this is the first its happened. I am all out of ideas and am hoping one of you could help me out. Thank you!
not sure about the hud but the deletion of weapons and world props is due to someone exploiting your SV
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.
That box is already unchecked (what you listed in option 2) its been unchecked ever since I started my server
put this into a lua file in the server's main lua folder
then use lua_openscript <FILENAME> to run it
local tbl=hook.GetTable()["CanProperty"]--get all the can property hooks
local ply=player.GetAll()[1]--if you're the only player on, this;ll be you
if !tbl or !ply then return end
for name,func in SortedPairs(tbl) do
print(name,func(ply,"remover",ply:GetActiveWeapon()) or nil)
end
print("GAMEMODE",GAMEMODE:CanProperty(ply,"remover",ply:GetActiveWeapon()))
tell me what is printed to the server console
Sorry, you need to Log In to post a reply to this thread.