Player.IsFrozen

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:IsFrozen( )
Description:
Returns true if the player is frozen.
Returns: Boolean
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.IsFrozen]Player.IsFrozen [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionIf Player is frozen it will unfreeze when function is called
Used onNewerServer.png
Code
 
function IsFrozen(ply)
     ply:Freeze(!ply:IsFrozen())
end
 
OutputIf Frozen: Will Unfreeze


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox