client
FreezeEntityPosition
FiveM client native documentation with a Lua example.
Summary
Freezes or unfreezes an entity in place. Common during loading, cutscenes, or character creation to stop the player moving.
Returns
void
Parameters
entitynumberThe entity handle.togglebooleantrue = frozen, false = free.Example
FreezeEntityPosition(PlayerPedId(), true)
-- ... when ready
FreezeEntityPosition(PlayerPedId(), false)Common pitfalls
- Always unfreeze later, or the player is stuck — a very common bug in spawn scripts.
- Freeze during teleport+collision-load to prevent falling through the map.
Related natives
Related guides
Need protected areas on your map?
Viper Safe-Zone draws polygon safe zones in-game — no hand-edited coordinates — with weapon, combat and vehicle-speed rules per zone.
See Viper Safe-Zone →