prepareAlarm
PREPARE_ALARM0x9D74AE343DB65533The 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.
prepareAlarm(alarmName: string): booleanprepareAlarm(alarmName: string): booleanUsage
JavaScript
const result = prepareAlarm(alarmName);Lua
local result = prepareAlarm(alarmName)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
alarmName | string | string | string |
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.
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