AudioClient

stopAlarm

STOP_ALARM0xA1CADDCD98415A41

The 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.

SignatureJavaScript
stopAlarm(alarmName: string, toggle: boolean): void
SignatureLua
stopAlarm(alarmName: string, toggle: boolean)

Usage

JavaScript
stopAlarm(alarmName, toggle);
Lua
stopAlarm(alarmName, toggle)

Parameters

ParameterTypeJavaScriptLua
alarmNamestringstringstring
toggleBOOLbooleanboolean

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

Open in the interactive natives reference