Hi,
So i’m trying to figure out how I can dynamicly edit wheels offset and camber (Xrot) in lua. And I came accross this Pull Request from the FiveM Github saying that you need to call those functions every frame in order to function as intended.
So i’ve code a fairly basic script to edit those values but instantly when I enter the camber and offset disapear.
My biggest problem now is how can I call those function every frame without blocking the execution of the script ?
I’ve tried the while true on a new Citizen Thread (to get async-ish task) but apparently FiveM doesn’t like it and my game instantly crashed.
I’m quite new to lua but I have solid knowledge in development, so if you have ANY idea please let me know !
Thanks in advance,
95Hz