RedM Natives

IS_EVENT_IN_QUEUE

Hash0xC8D523BF5BBD3808
Runtime nameIsEventInQueue
NamespacePED
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL IS_EVENT_IN_QUEUE(Ped ped, Hash eventType);

Parameters

NameTypeDescription
pedPed—
eventTypeHash—

Returns BOOL

Usage

Lua
local retval = IsEventInQueue(ped, eventType)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC8D523BF5BBD3808, ped, eventType, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsEventInQueue(ped, eventType);

// by hash
const retval = Citizen.invokeNative('0xC8D523BF5BBD3808', ped, eventType, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xC8D523BF5BBD3808, ped, eventType);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.