GM:OnPhysgunFreeze
Description
Called when a player freezes an entity with the physgun.
Arguments
Returns
1 boolean
Return
false
to block the unfreeze.
The unfreezing is handled by the base gamemode hook. This hook has no return value, returning any value will prevent the gamemode hook from running, which is true for every hook.
Example
Only allows admins to freeze things, by preventing the default base gamemode code from running due to how the hook library functions.
See hook.Add for explanation. The return value does not matter, as long as it is not nil
, the base code will not run.