AudioClient

getAmbientVoiceNameHash

GET_AMBIENT_VOICE_NAME_HASH0x5E203DA2BA15D436

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

SignatureJavaScript
getAmbientVoiceNameHash(ped: Ped): Hash
SignatureLua
getAmbientVoiceNameHash(ped: Ped): Hash

Usage

JavaScript
const hash = getAmbientVoiceNameHash(ped);
Lua
local hash = getAmbientVoiceNameHash(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

Hash JavaScript number, Lua integer

A game hash. Natives return it unsigned (0 to 4294967295), the value lsmp.hash gives. As an argument, the signed and unsigned forms of a hash are the same value.

Reference

Namespace
Audio AUDIO
In the game
Hash GET_AMBIENT_VOICE_NAME_HASH(Ped ped)
Hash
0x5E203DA2BA15D436
Introduced
Game build 463 legacy numbering
Formerly
_GET_AMBIENT_VOICE_NAME_HASH

Open in the interactive natives reference