AudioClient

setAmbientVoiceName

SET_AMBIENT_VOICE_NAME0x6C8065A3B780185B

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

SignatureJavaScript
setAmbientVoiceName(ped: Ped, name: string): void
SignatureLua
setAmbientVoiceName(ped: Ped, name: string)

Usage

JavaScript
setAmbientVoiceName(ped, name);
Lua
setAmbientVoiceName(ped, name)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
namestringstringstring

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.

Audio List
https://gtaforums.com/topic/795622-audio-for-mods/

All found occurrences in b617d, sorted alphabetically and identical lines removed: https://pastebin.com/FTeAj4yZ

Reference

Namespace
Audio AUDIO
In the game
void SET_AMBIENT_VOICE_NAME(Ped ped, const char* name)
Hash
0x6C8065A3B780185B

Open in the interactive natives reference