The Lab
AUDIO native

DOES_CONTEXT_EXIST_FOR_THIS_PED

returns BOOL3 paramsbuild 1207

Returns true if ped's voice has lines for the speech context speechName.

Signature

C
BOOL DOES_CONTEXT_EXIST_FOR_THIS_PED(Ped ped, const char* speechName, BOOL unk); // 0x49B99BF3FDA89A7A b1207

Parameters

#NameType
1pedPed
2speechNameconst char*
3unkBOOL

Facts

Facts about DOES_CONTEXT_EXIST_FOR_THIS_PED
Name
DOES_CONTEXT_EXIST_FOR_THIS_PED
Hash
0x49B99BF3FDA89A7A
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(0x49B99BF3FDA89A7A, -- DOES_CONTEXT_EXIST_FOR_THIS_PED
  PlayerPedId(), -- Ped ped
  "text", -- const char* speechName
  false -- BOOL unk
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x49B99BF3FDA89A7A", // DOES_CONTEXT_EXIST_FOR_THIS_PED
  PlayerPedId(), // Ped ped
  "text", // const char* speechName
  false, // BOOL unk
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x49B99BF3FDA89A7A, // DOES_CONTEXT_EXIST_FOR_THIS_PED
  API.PlayerPedId(), // Ped ped
  "text", // const char* speechName
  false // BOOL unk
);
All AUDIO natives

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