Ambulancejob rotate camera while dead

You guys just looking out for rotating the camera while dead… I’ve found this in the client lua:

if IsDead then
DisableAllControlActions(0)
EnableControlAction(0, Keys[‘T’], true)

So it disables everything and enables the keys the player needs to chat/ask for support…
How can I enable the mouse movement? I’ve searched up in the docs but I really don’t understand anything about that website. Ty so so much!

EnableControlAction(0, 1, true)
EnableControlAction(0, 2, true)

1 Like

Ty, where did you found the values?

https://docs.fivem.net/docs/game-references/controls/

Oh in the index part, ty

doesn’t work .__.

I tested the code

Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
DisableAllControlActions(0)
EnableControlAction(0, 1, true)
EnableControlAction(0, 2, true)
end
end)

and i could use mouse movement