DOES_CONTEXT_EXIST_FOR_THIS_PED
Returns true if ped's voice has lines for the speech context speechName.
Signature
BOOL DOES_CONTEXT_EXIST_FOR_THIS_PED(Ped ped, const char* speechName, BOOL unk); // 0x49B99BF3FDA89A7A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | speechName | const char* |
| 3 | unk | BOOL |
Facts
| 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.
local result = Citizen.InvokeNative(0x49B99BF3FDA89A7A, -- DOES_CONTEXT_EXIST_FOR_THIS_PED
PlayerPedId(), -- Ped ped
"text", -- const char* speechName
false -- BOOL unk
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x49B99BF3FDA89A7A", // DOES_CONTEXT_EXIST_FOR_THIS_PED
PlayerPedId(), // Ped ped
"text", // const char* speechName
false, // BOOL unk
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x49B99BF3FDA89A7A, // DOES_CONTEXT_EXIST_FOR_THIS_PED
API.PlayerPedId(), // Ped ped
"text", // const char* speechName
false // BOOL unk
);Related AUDIO natives
- _GET_LAST_PLAYED_SPEECH_FOR_PED
- _SET_WHISTLE_CONFIG_FOR_PED
- DISABLE_PED_PAIN_AUDIO
- _BLOCK_SPEECH_CONTEXT
- _CLEAR_CONVERSATION_HISTORY_FOR_SCRIPTED_CONVERSATION
- _CREATE_NEW_SCRIPTED_PED_AMBIENT_SPEECH
- _GET_PED_SONG_INDEX_HOST
- _IS_PED_IN_ANY_CONVERSATION
- _PLAY_SOUND_FROM_SCRIPTED_PED_AMBIENT_SPEECH
- _SET_SOUND_RELATIONSHIP_ON_PED
- _SET_VOFX_PED_VOICE
- _UNLOAD_SPEECH_CONTEXT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.