AudioClient

hintMissionAudioBank

HINT_MISSION_AUDIO_BANK0x40763EA7B9B783E7

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

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

Usage

JavaScript
const result = hintMissionAudioBank(audioBank, p1, p2);
Lua
local result = hintMissionAudioBank(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_MISSION_AUDIO_BANK(const char* audioBank, BOOL p1, Any p2)
Hash
0x40763EA7B9B783E7
Introduced
Game build 573 legacy numbering

Open in the interactive natives reference