function ulx.cleardecals( ply )
for k,v in pairs ( player.GetAll() ) do
v:ConCommand( "r_cleardecals" )
v:SendLua( "game.RemoveRagdolls()" )
end
ulx.fancyLogAdmin( ply, "#A cleared all decals" )
end
local cleardecals = ulx.command( "Trooper's Additions", "ulx cleardecals", ulx.cleardecals, "!cleardecals" )
cleardecals:defaultAccess( ULib.ACCESS_ADMIN )
cleardecals:help( "Clears all decals, and removes client ragdolls." )
This is what I use, it removes the dead NPC's too. And it works definently, been using it for ages.