requestScriptAudioBank
REQUEST_SCRIPT_AUDIO_BANK0x2F844A8B08D76685The GTA V native REQUEST_SCRIPT_AUDIO_BANK of the AUDIO namespace, as LS:MP client scripts call it: the global function requestScriptAudioBank, in JavaScript and in Lua.
requestScriptAudioBank(audioBank: string, p1: boolean, p2: any): booleanrequestScriptAudioBank(audioBank: string, p1: boolean, p2: any): booleanUsage
JavaScript
const result = requestScriptAudioBank(audioBank, p1, p2);Lua
local result = requestScriptAudioBank(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.
All occurrences and usages found in b617d, sorted alphabetically and identical lines removed: https://pastebin.com/AkmDAVn6
Full list of script audio bank names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scriptAudioBankNames.json
p2 is always -1
Reference
- Namespace
- Audio AUDIO
- In the game
BOOL REQUEST_SCRIPT_AUDIO_BANK(const char* audioBank, BOOL p1, Any p2)- Hash
0x2F844A8B08D76685