When we should use Citizen.CreateThread

Guys i just started learning fivem lua and i dont know i should use Citizen.CreateThread when
I mean for what i should use Citizen.CreateThread

1 Like

You will mostly use for loops. Running loops (or big for statements) on the main thread will usually stop your whole script, so running them in another thread will let your main thread continue the script, while the loop runs in another thread.

1 Like