AudioClient

hintScriptAudioBank

HINT_SCRIPT_AUDIO_BANK0xFB380A29641EC31A

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

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

Usage

JavaScript
const result = hintScriptAudioBank(audioBank, p1, p2);
Lua
local result = hintScriptAudioBank(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_SCRIPT_AUDIO_BANK(const char* audioBank, BOOL p1, Any p2)
Hash
0xFB380A29641EC31A

Open in the interactive natives reference