RedM Natives

IS_PED_RESPONDING_TO_EVENT

Hash0x625B774D75C87068
Runtime nameIsPedRespondingToEvent
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x625B774D75C87068

Signature

BOOL IS_PED_RESPONDING_TO_EVENT(Ped ped, Hash eventType);

Parameters

NameTypeDescription
pedPed—
eventTypeHash—

Returns BOOL

Description

eventType: https://alloc8or.re/rdr3/doc/enums/eEventType.txt

Usage

Lua
local retval = IsPedRespondingToEvent(ped, eventType)

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

// by hash
const retval = Citizen.invokeNative('0x625B774D75C87068', ped, eventType, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x625B774D75C87068, 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.