fivem-docs
fivem-docs copied to clipboard
feat(wait/doc): complete page
This will mostly show:
- What is Citizen.Wait
- How does it work
- Example
- Where to use it
- Tips
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.
Credits to @AvarianKnight for the "Things to keep in mind" part. Thanks.