RedM Natives

DOES_CONTEXT_EXIST_FOR_THIS_PED

Checks if the ped can play the speech or has the speech file, last parameter is usually false.

Hash0x49B99BF3FDA89A7A
Runtime nameDoesContextExistForThisPed
NamespaceAUDIO
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x49B99BF3FDA89A7A

Signature

BOOL DOES_CONTEXT_EXIST_FOR_THIS_PED(Ped ped, const char* speechName, BOOL unk);

Parameters

NameTypeDescription
pedPed—
speechNameconst char*—
unkBOOL—

Returns BOOL

Description

Checks if the ped can play the speech or has the speech file, last parameter is usually false.

Usage

Lua
local retval = DoesContextExistForThisPed(ped, speechName, unk)

-- always works, by hash
local retval = Citizen.InvokeNative(0x49B99BF3FDA89A7A, ped, speechName, unk, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = DoesContextExistForThisPed(ped, speechName, unk);

// by hash
const retval = Citizen.invokeNative('0x49B99BF3FDA89A7A', ped, speechName, unk, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x49B99BF3FDA89A7A, ped, speechName, unk);

Sources

alloc8or RDR3 NativeDB

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