DOES_CONTEXT_EXIST_FOR_THIS_PED
Checks if the ped can play the speech or has the speech file, last parameter is usually false.
Hash
0x49B99BF3FDA89A7ARuntime name
DoesContextExistForThisPedNamespaceAUDIO
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x49B99BF3FDA89A7ASignature
BOOL DOES_CONTEXT_EXIST_FOR_THIS_PED(Ped ped, const char* speechName, BOOL unk);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
speechName | const char* | — |
unk | BOOL | — |
Returns BOOL
Description
Checks if the ped can play the speech or has the speech file, last parameter is usually false.
Usage
local retval = DoesContextExistForThisPed(ped, speechName, unk)
-- always works, by hash
local retval = Citizen.InvokeNative(0x49B99BF3FDA89A7A, ped, speechName, unk, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DoesContextExistForThisPed(ped, speechName, unk);
// by hash
const retval = Citizen.invokeNative('0x49B99BF3FDA89A7A', ped, speechName, unk, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x49B99BF3FDA89A7A, ped, speechName, unk);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.