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 k, v in pairs(player.GetAll()) do v:Freeze( true ) end

Page Links


Special Pages


Wikis

?

Render Time: 40ms

DB GetPage 4
Generate Html 5
SaveChanges (1) 13
Render Body 0
Render Sidebar 15