AudioClient

hintAmbientAudioBank

HINT_AMBIENT_AUDIO_BANK0x8F8C0E370AE62F5C

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

SignatureJavaScript
hintAmbientAudioBank(audioBank: string, p1: boolean, p2: any): boolean
SignatureLua
hintAmbientAudioBank(audioBank: string, p1: boolean, p2: any): boolean

Usage

JavaScript
const result = hintAmbientAudioBank(audioBank, p1, p2);
Lua
local result = hintAmbientAudioBank(audioBank, p1, p2)

Parameters

ParameterTypeJavaScriptLua
audioBankstringstringstring
p1BOOLbooleanboolean
p2Anyanyany

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

p2 is always -1

Reference

Namespace
Audio AUDIO
In the game
BOOL HINT_AMBIENT_AUDIO_BANK(const char* audioBank, BOOL p1, Any p2)
Hash
0x8F8C0E370AE62F5C

Open in the interactive natives reference