AudioClient

isAmbientZoneEnabled

IS_AMBIENT_ZONE_ENABLED0x01E2817A479A7F9B

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

SignatureJavaScript
isAmbientZoneEnabled(ambientZone: string): boolean
SignatureLua
isAmbientZoneEnabled(ambientZone: string): boolean

Usage

JavaScript
const result = isAmbientZoneEnabled(ambientZone);
Lua
local result = isAmbientZoneEnabled(ambientZone)

Parameters

ParameterTypeJavaScriptLua
ambientZonestringstringstring

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.

Reference

Namespace
Audio AUDIO
In the game
BOOL IS_AMBIENT_ZONE_ENABLED(const char* ambientZone)
Hash
0x01E2817A479A7F9B

Open in the interactive natives reference