From Garry's Mod
Called when a player attempts to spawn a ragdoll from the Q menu.
The player who attempted to spawn a ragdoll.
Path to the model of the ragdoll the player is attempting to spawn.
Should the player be able to spawn the ragdoll or not.
Stops non-admins from spawning ragdolls.
function GM:PlayerSpawnRagdoll( ply, model ) if ( not ply:IsAdmin() ) then return false end end