setAmbientZoneStatePersistent
SET_AMBIENT_ZONE_STATE_PERSISTENT0x1D6650420CEC9D3BThe GTA V native SET_AMBIENT_ZONE_STATE_PERSISTENT of the AUDIO namespace, as LS:MP client scripts call it: the global function setAmbientZoneStatePersistent, in JavaScript and in Lua.
setAmbientZoneStatePersistent(
ambientZone: string,
p1: boolean,
p2: boolean
): voidsetAmbientZoneStatePersistent(ambientZone: string, p1: boolean, p2: boolean)Usage
JavaScript
setAmbientZoneStatePersistent(ambientZone, p1, p2);Lua
setAmbientZoneStatePersistent(ambientZone, p1, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ambientZone | string | string | string |
p1 | BOOL | boolean | boolean |
p2 | 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.
Full list of ambient zones by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/ambientZones.json
Reference
- Namespace
- Audio AUDIO
- In the game
void SET_AMBIENT_ZONE_STATE_PERSISTENT(const char* ambientZone, BOOL p1, BOOL p2)- Hash
0x1D6650420CEC9D3B