Community Developer Shares a Handy Native

Sometimes the best discoveries come from the community! tens0rfl0w recently shared a neat FiveM native combination that caught my attention and thought it was worth sharing with everyone.

As tens0rfl0w put it: "10 years later 💀" - you know how it is, sometimes you find something useful after all this time!

The Discovery

Here's the code tens0rfl0w shared for completely removing all 'idle' movement from a player ped:

CreateThread(function()

while true do

SetIkTarget(PlayerPedId(), 1, PlayerPedId(), 12844, 0.0, 0.0, 0.0, 0, -1, -1) -- Kill head to cam heading movement

ForcePedMotionState(PlayerPedId(), `MotionState_None`, false, 1, true)

Wait(0)

end

end)

As tens0rfl0w noted: "Useful for character customization screens or similar"

When This Comes in Handy

This little snippet is pretty useful for various scenarios:

  • Character Creation Screens: Keep players perfectly still during customization
  • Photo Sessions: No more fidgety players during screenshot moments
  • Menu Interactions: Maintain clean positioning when players are in UIs
  • Scripted Scenes: Precise control for cutscenes or specific positioning needs

Got any neat discoveries of your own? The community always appreciates when developers share their finds!