The Lab
BUILTIN native

WAIT

returns void1 parambuild 1207

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

C
void WAIT(int ms); // 0x4EDE34FBADD967A6 b1207

Parameters

#NameType
1msint

Facts

Facts about WAIT
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.

Lua
Citizen.InvokeNative(0x4EDE34FBADD967A6, -- WAIT
  0 -- int ms
)
JavaScript
Citizen.invokeNative("0x4EDE34FBADD967A6", // WAIT
  0 // int ms
);
C#
Function.Call((Hash)0x4EDE34FBADD967A6, // WAIT
  0 // int ms
);
All BUILTIN natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.