Player/Freeze

From Garry's Mod
Jump to: navigation, search
 Player:Freeze( )

Contents

Description

Freeze the player. Frozen players cannot move, look around, or attack. Key bindings are still called. Similar to Player:Lock but the player can still take damage.

Adds or removes the FL_FROZEN flag from the player.

BUG

Frozen bots will still be able to look around.

Arguments

boolean frozen=false

Whether the player should be frozen.

Examples

Example

Freezes all players

for k, v in pairs(player.GetAll()) do
    v:Freeze( true )
end


Personal tools
Navigation