Loorenzos Posted November 24, 2018 Share Posted November 24, 2018 I want to know if there is a thing equivalent to Citizen.CreateThread from FiveM to loop something ? ^^ Link to comment Share on other sites More sharing options...
Captien Posted November 24, 2018 Share Posted November 24, 2018 (edited) mp.events.add('render', () => { //updates every frame }); Explore more about render event Edited November 24, 2018 by Captien Link to comment Share on other sites More sharing options...
Flow Posted November 24, 2018 Share Posted November 24, 2018 (edited) For things like reducing hunger and thirst you can use something like this: function theLoop() { doSomething(); } } setInterval(theLoop,150000); Edited November 24, 2018 by cmdflow 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now