The Lab
QUEUE native

_EVENT_QUEUE_IS_EMPTY

returns BOOL1 parambuild 1207

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

C
BOOL _EVENT_QUEUE_IS_EMPTY(Hash hash); // 0x402B5D7D269FF796 b1207

Parameters

#NameType
1hashHash

Facts

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

Lua
local result = Citizen.InvokeNative(0x402B5D7D269FF796, -- _EVENT_QUEUE_IS_EMPTY
  GetHashKey("name") -- Hash hash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x402B5D7D269FF796", // _EVENT_QUEUE_IS_EMPTY
  GetHashKey("name"), // Hash hash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x402B5D7D269FF796, // _EVENT_QUEUE_IS_EMPTY
  (uint)API.GetHashKey("name") // Hash hash
);
All QUEUE natives

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