AudioClient

prepareAlarm

PREPARE_ALARM0x9D74AE343DB65533

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

SignatureJavaScript
prepareAlarm(alarmName: string): boolean
SignatureLua
prepareAlarm(alarmName: string): boolean

Usage

JavaScript
const result = prepareAlarm(alarmName);
Lua
local result = prepareAlarm(alarmName)

Parameters

ParameterTypeJavaScriptLua
alarmNamestringstringstring

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.

Example:

bool prepareAlarm = prepareAlarm("PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS");

Full list of alarm names by DurtyFree https://github.com/DurtyFree/gta-v-data-dumps/blob/master/alarmSounds.json

Reference

Namespace
Audio AUDIO
In the game
BOOL PREPARE_ALARM(const char* alarmName)
Hash
0x9D74AE343DB65533

Open in the interactive natives reference