ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isPedFrozen

Function

isPedFrozen

ServerPedsIdentical to MTA:SA

Checks whether a ped is frozen, i.e. cannot move or fall. Freezing is set with setElementFrozen; the player's game applies it immediately.

Syntax

bool isPedFrozen(ped ped)

Arguments

pedped
A player or an NPC.

Returns

true when frozen.

Example

if isPedFrozen(player) then outputChatBox("Jesteś zamrożony.", player) end

See also