citizenfx / fivem-docs

FiveM documentation repository
https://docs.fivem.net/
101 stars 300 forks source link

feat(wait/doc): complete page #431

Closed PsychoShock closed 3 months ago

PsychoShock commented 5 months ago

This will mostly show:

TheIndra55 commented 5 months ago

In my opinion this has too much filler, while leaving out important details like that it yields "thread"/coroutine so the game can render the next frame. You should probably just extend the current page and include two examples; one example showing a 2 seconds wait, and another one explaining how/why we need the Wait(0) you see often in loops.

PsychoShock commented 5 months ago

Credits to @AvarianKnight for the "Things to keep in mind" part. Thanks.