Player/Freeze

From Garry's Mod
Revision as of 22:08, 24 June 2019 by Greenhourglass (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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