AudioClient

playPedAmbientSpeechAndCloneNative

PLAY_PED_AMBIENT_SPEECH_AND_CLONE_NATIVE0xC6941B4A3A8FBBB9

The GTA V native PLAY_PED_AMBIENT_SPEECH_AND_CLONE_NATIVE of the AUDIO namespace, as LS:MP client scripts call it: the global function playPedAmbientSpeechAndCloneNative, in JavaScript and in Lua.

SignatureJavaScript
playPedAmbientSpeechAndCloneNative(
  ped: Ped,
  speechName: string,
  speechParam: string,
  p3: any
): void
SignatureLua
playPedAmbientSpeechAndCloneNative(
  ped: Ped,
  speechName: string,
  speechParam: string,
  p3: any
)

Usage

JavaScript
playPedAmbientSpeechAndCloneNative(ped, speechName, speechParam, p3);
Lua
playPedAmbientSpeechAndCloneNative(ped, speechName, speechParam, p3)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
speechNamestringstringstring
speechParamstringstringstring
p3Anyanyany

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Plays ambient speech. See also _0x5C57B85D.

See playPedAmbientSpeechNative for parameter specifications.

Full list of speeches and voices names by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/speeches.json

Reference

Namespace
Audio AUDIO
In the game
void PLAY_PED_AMBIENT_SPEECH_AND_CLONE_NATIVE(Ped ped, const char* speechName, const char* speechParam, Any p3)
Hash
0xC6941B4A3A8FBBB9
Formerly
_PLAY_AMBIENT_SPEECH2

Open in the interactive natives reference