requestAmbientAudioBank
REQUEST_AMBIENT_AUDIO_BANK0xFE02FFBED8CA9D99The GTA V native REQUEST_AMBIENT_AUDIO_BANK of the AUDIO namespace, as LS:MP client scripts call it: the global function requestAmbientAudioBank, in JavaScript and in Lua.
requestAmbientAudioBank(audioBank: string, p1: boolean, p2: any): booleanrequestAmbientAudioBank(audioBank: string, p1: boolean, p2: any): booleanUsage
JavaScript
const result = requestAmbientAudioBank(audioBank, p1, p2);Lua
local result = requestAmbientAudioBank(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/XZ1tmGEz
Full list of ambient audio bank names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ambientAudioBankNames.json
p2 is always -1
Reference
- Namespace
- Audio AUDIO
- In the game
BOOL REQUEST_AMBIENT_AUDIO_BANK(const char* audioBank, BOOL p1, Any p2)- Hash
0xFE02FFBED8CA9D99