Entity::isPositionFrozen
JavaScript
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)
}
}