ScriptsAboutBlogToolsKnowledge BaseReviewsFAQBasketDocsSupport
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

FiveM scripts done right

Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.

Browse Scripts →