clearAmbientZoneState
CLEAR_AMBIENT_ZONE_STATE0x218DD44AAAC964FFThe GTA V native CLEAR_AMBIENT_ZONE_STATE of the AUDIO namespace, as LS:MP client scripts call it: the global function clearAmbientZoneState, in JavaScript and in Lua.
clearAmbientZoneState(zoneName: string, p1: boolean): voidclearAmbientZoneState(zoneName: string, p1: boolean)Usage
JavaScript
clearAmbientZoneState(zoneName, p1);Lua
clearAmbientZoneState(zoneName, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
zoneName | string | string | string |
p1 | 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.
This function also has a p2, unknown. Signature clearAmbientZoneState(const char* zoneName, bool p1, Any p2);
Still needs more research.
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 CLEAR_AMBIENT_ZONE_STATE(const char* zoneName, BOOL p1)- Hash
0x218DD44AAAC964FF