_EVENT_QUEUE_IS_EMPTY
Returns true if the script event queue identified by hash currently holds no events.
Check it before reading events so you do not process an empty queue.
Signature
BOOL _EVENT_QUEUE_IS_EMPTY(Hash hash); // 0x402B5D7D269FF796 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | hash | Hash |
Facts
| Name | _EVENT_QUEUE_IS_EMPTY |
|---|---|
| Hash | 0x402B5D7D269FF796 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x402B5D7D269FF796, -- _EVENT_QUEUE_IS_EMPTY
GetHashKey("name") -- Hash hash
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x402B5D7D269FF796", // _EVENT_QUEUE_IS_EMPTY
GetHashKey("name"), // Hash hash
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x402B5D7D269FF796, // _EVENT_QUEUE_IS_EMPTY
(uint)API.GetHashKey("name") // Hash hash
);Related QUEUE natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.