No Idle Cam allows players to disable the idle camera animation on foot and in vehicle, making RP scenarios, streaming on Twitch, or just general gameplay just a little more enjoyable.
I’m aware that there are other scripts available that do the same thing, however previously, my script was running in a loop.
One of the major things I wanted to tackle, was rather than disabling the camera all together server side, why not allow the player themselves, to control whether they want it on or not? Which has led me to KVS.
Using KVS, as long as the script remains as ‘NoIdleCam’, players can use the following commands in chat, in any server that runs this resource, to turn on or off the camera idling animations and save their preferences:
deactivates the native
enables the native
The neat thing about KVS is that, even if the player leaves the server and comes back tomorrow, a week, month or year from now, as long as they haven’t deleted their FiveM files, their preferences will remain.
Add to your resources folder or [Scripts] folder
Add start NoIdleCam to your server.cfg.
The resource must be named NoIdleCam for the kvs to work.
In chat type /idlecamon to toggle it on, and /idlecamoff to turn it back off.
You add the resource and use the command to turn it off. KVS then stores your preference ‘off’.
If you want it back on again, you use the command.
If you don’t want itoff whatsoever, then don’t use any command.
The benefit of this resource and it’s main creation purpose, is that it gives the player base a choice of whether or not they want it on or not, rather than forcing it on or off and the player base having no say or choice in the matter.
I actually got the idea from @Smallo and his radio resource that allows players to show or hide certain radios across any server running the resource. I personally don’t use frameworks and for something simple like this, I really don’t see any reason why a framework would be required, it would just be more work trying to muck about with QBCore, or whatever other framework whereas KVS works fine and keeps it somewhat standalone