No, I think you are still confused.
It doesn’t need to be in an infinite loop at all.
The wait time doesn’t matter. It shouldn’t be in a loop. This is bad:
Citizen.CreateThread(function()
while true do
Citizen.Wait(100)
DisableIdleCamera(true)
end
end)
If you disable it on the server, it disables it for everyone. That native that you’re talking about, DisableIdleCamera(true) must be new as when @kibukj and I made my resource, I don’t believe it was there.
We went with the approach that maybe you want to turn it back on, or perhaps you personally want it off but I want it on, so we implemented KVP. You can take a look at it here if you’re interested?