The Lab
AUDIO native

_PLAY_SOUND_FROM_SCRIPTED_PED_AMBIENT_SPEECH

returns int1 parambuild 1207

Plays a scripted ambient speech line created with _CREATE_NEW_SCRIPTED_PED_AMBIENT_SPEECH.

Signature

C
int _PLAY_SOUND_FROM_SCRIPTED_PED_AMBIENT_SPEECH(int scriptedSpeech); // 0xB18FEC133C7C6C69 b1207

Parameters

#NameType
1scriptedSpeechint

Facts

Facts about _PLAY_SOUND_FROM_SCRIPTED_PED_AMBIENT_SPEECH
Name
_PLAY_SOUND_FROM_SCRIPTED_PED_AMBIENT_SPEECH
Hash
0xB18FEC133C7C6C69
Namespace
Returns
int
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(0xB18FEC133C7C6C69, -- _PLAY_SOUND_FROM_SCRIPTED_PED_AMBIENT_SPEECH
  0, -- int scriptedSpeech
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xB18FEC133C7C6C69", // _PLAY_SOUND_FROM_SCRIPTED_PED_AMBIENT_SPEECH
  0, // int scriptedSpeech
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xB18FEC133C7C6C69, // _PLAY_SOUND_FROM_SCRIPTED_PED_AMBIENT_SPEECH
  0 // int scriptedSpeech
);
All AUDIO natives

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