Garry's Mod Wiki

Player:Freeze

Player:Freeze( boolean frozen = false )

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.

Frozen bots will still be able to look around.

Arguments

1 boolean frozen = false
Whether the player should be frozen.

Example

Freezes all players

for _, ply in ipairs( player.GetAll() ) do ply:Freeze( true ) end

Page Links


Special Pages


Wikis

?

Render Time: 35ms

DB GetPage 7
Generate Html 3
SaveChanges (1) 17
Render Body 0
Render Sidebar 6