A simple small script to freeze every prop on your server.
Great way to reduce lag and prevent prop spammers.
To install simply drop the file into your addons folder.
Raw Code:
function ulx.freezeprops( calling_ply )
local Ent = ents.FindByClass("prop_physics")
for _,Ent in pairs(Ent) do
if Ent:IsValid() then
local phys = Ent:GetPhysicsObject()
phys:EnableMotion(false)
end
end
ulx.fancyLogAdmin( calling_ply, "#A froze all props" )
end
local freezeprops = ulx.command( CATEGORY_NAME, "ulx freezeprops", ulx.freezeprops, "!freezeprops" )
freezeprops:defaultAccess( ULib.ACCESS_ADMIN )
freezeprops:help( "Freeze every prop on the server." )