stopAlarm
STOP_ALARM0xA1CADDCD98415A41The GTA V native STOP_ALARM of the AUDIO namespace, as LS:MP client scripts call it: the global function stopAlarm, in JavaScript and in Lua.
stopAlarm(alarmName: string, toggle: boolean): voidstopAlarm(alarmName: string, toggle: boolean)Usage
JavaScript
stopAlarm(alarmName, toggle);Lua
stopAlarm(alarmName, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
alarmName | string | string | string |
toggle | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Example:
This will stop the alarm at Fort Zancudo.
stopAlarm("PORT_OF_LS_HEIST_FORT_ZANCUDO_ALARMS", 1);First parameter (char) is the name of the alarm.
Second parameter (bool) has to be true (1) to have any effect.
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
void STOP_ALARM(const char* alarmName, BOOL toggle)- Hash
0xA1CADDCD98415A41