hintScriptAudioBank
HINT_SCRIPT_AUDIO_BANK0xFB380A29641EC31AThe 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.
hintScriptAudioBank(audioBank: string, p1: boolean, p2: any): booleanhintScriptAudioBank(audioBank: string, p1: boolean, p2: any): booleanUsage
JavaScript
const result = hintScriptAudioBank(audioBank, p1, p2);Lua
local result = hintScriptAudioBank(audioBank, p1, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
audioBank | string | string | string |
p1 | BOOL | boolean | boolean |
p2 | Any | any | any |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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