Entity::isPositionFrozen

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



JavaScript Syntax


Readonly property, returns whether entity position is frozen or not.

Return value

  • boolean

Syntax

entity.isPositionFrozen

Example

//Example creating a function that checks whether the player position is frozen before unfreezing them.
function unfreezePlayer() {
    if (mp.players.local.isPositionFrozen) {
        mp.players.local.freezePosition(false)
    }
}


See also