AudioClient

setAmbientVoiceNameHash

SET_AMBIENT_VOICE_NAME_HASH0x9A53DED9921DE990

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

SignatureJavaScript
setAmbientVoiceNameHash(ped: Ped, hash: Hash): void
SignatureLua
setAmbientVoiceNameHash(ped: Ped, hash: Hash)

Usage

JavaScript
setAmbientVoiceNameHash(ped, hash);
Lua
setAmbientVoiceNameHash(ped, hash)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
hashHashnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Audio AUDIO
In the game
void SET_AMBIENT_VOICE_NAME_HASH(Ped ped, Hash hash)
Hash
0x9A53DED9921DE990
Introduced
Game build 463 legacy numbering
Formerly
_SET_AMBIENT_VOICE_NAME_HASH

Open in the interactive natives reference