WAIT
Pauses the current script thread for ms milliseconds and yields to the game; WAIT(0) resumes on the next frame.
Every infinite loop in a script must call it, or the game will hang.
Signature
void WAIT(int ms); // 0x4EDE34FBADD967A6 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ms | int |
Facts
| Name | WAIT |
|---|---|
| Hash | 0x4EDE34FBADD967A6 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x4EDE34FBADD967A6, -- WAIT
0 -- int ms
)Citizen.invokeNative("0x4EDE34FBADD967A6", // WAIT
0 // int ms
);Function.Call((Hash)0x4EDE34FBADD967A6, // WAIT
0 // int ms
);Related BUILTIN natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.