-- LUA PlayPedAmbientSpeechNative
0x8E04FEDD28D42462
-- PLAY_PED_AMBIENT_SPEECH_NATIVE
local retval --[[ boolean ]], params --[[ Any ]] =
PlayPedAmbientSpeechNative(
ped --[[ Ped ]]
)
struct ScriptedSpeechParams
{
const char* speechName;
const char* voiceName;
alignas(8) int v3;
alignas(8) Hash speechParamHash;
alignas(8) Entity entity;
alignas(8) BOOL v6;
alignas(8) int v7;
alignas(8) int v8;
};
static_assert(sizeof(ScriptedSpeechParams) == 0x40, "incorrect ScriptedSpeechParams size");
Example:
ScriptedSpeechParams params{"RE_PH_RHD_V3_AGGRO", "0405_U_M_M_RhdSheriff_01", 1, 0x67F3AB43, 0, true, 1, 1};
PLAY_PED_AMBIENT_SPEECH_NATIVE(PLAYER_PED_ID(), (Any*)¶ms);
Old name: _PLAY_AMBIENT_SPEECH1
https://github.com/femga/rdr3_discoveries/tree/master/audio/audio_banks
Parameters:
header:
sentence.
header:
sentence.
header:
sentence.
Returns:
sentence.
Summary
sentence.
Example
---
Additional natives used in this example, or natives commonly used with this native.
NATIVE, NATIVE
Common Errors or Problems
Problem: sentence.
Problem: sentence.
Problem: sentence.
Credits and Disclaimers
The base of this data was taken from the redm/cfx fivem/rdr docs, and vespura. We have been saving and making notes for two years now, and are now adding them to our site for everyone to use. We will be modifying the notes as needed, and building tutorials around the data so these pages will change as we work on it. This is a manual process, not an automated one, so updates will occur as we have time, the priority is releasing resources. Thanks for your patience.