fivem-docs icon indicating copy to clipboard operation
fivem-docs copied to clipboard

feat(wait/doc): complete page

Open PsychoShock opened this issue 1 year ago • 2 comments

This will mostly show:

  • What is Citizen.Wait
  • How does it work
  • Example
  • Where to use it
  • Tips

PsychoShock avatar Jun 05 '24 03:06 PsychoShock

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.

TheIndra55 avatar Jun 07 '24 15:06 TheIndra55

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

PsychoShock avatar Jun 08 '24 20:06 PsychoShock