• How to get rid of NPC corpses & change default prop limit
    3 replies, posted
So on my DarkRP server I have a quest system that involves killing NPC's and whenever I kill them the corpses just stay there forever and I can't clean them up with anything. Is there any way I can get them to like fade away after a certain amount of time or just straight up auto-delete them? I've tried doing sbox_maxprops 300 in my servers config file but it doesn't change shit, so where tf do I set the server defaults?
i believe there's an option in FAdmin(the default tab menu) as for the corpses of NPCs put this into the shared autorun timer.Create("removeRagdolls",60,0,game.RemoveRagdolls)
I don't use FAdmin and I figured out how to do the corpse thing cheers, any ideas for the props thing tho?
If your quest system supports a feature when the quest is finished and the quest props are spawned in a specific area, try for k,v in pairs(ents.FindInBox(Vector(x1,y1,z1),Vector(x2,y2,z2))) do if v:GetModel() == "<the model path you want to remove here>" && !v:IsPlayer() then v:Remove() end end ents.FindInBox
Sorry, you need to Log In to post a reply to this thread.