Waiter β
The Waiter module provides timing utilities to handle code execution with timeout conditions. It's particularly useful when you need to wait for specific conditions to be met before proceeding with code execution.
Include Waiter in your script β
- To use the Waiter library, add the initiator as a shared script inside your
fxmanifest.lua
file:
lua
shared_scripts {
'@jo_libs/init.lua'
}
- Add the Waiter module inside the
fxmanifest.lua
(in lowercase):
lua
jo_libs {
'waiter',
}
You can now use the library inside your resource with the jo.waiter
global variable.
Functions β
Documentation for the Both side.