Native referenceRedM

CLEAR_AMBIENT_ZONE_STATE

0x218DD44AAAC964FF AUDIO
FUNCTION SIGNATURE
void CLEAR_AMBIENT_ZONE_STATE(char* zoneName, BOOL forceUpdate);
Property Value
Native Name CLEAR_AMBIENT_ZONE_STATE
Hash 0x218DD44AAAC964FF
Return Type void
Build 1207
Parameters zoneName (char*), forceUpdate (BOOL)

Description: Resets the ambient zone enabled/disabled status to its value before it was modified by this script

Default behaviour is that any state change only gets applied once the player leaves the zone.

Parameters

  • zoneName (char*) — the zone name to clear
  • forceUpdate (BOOL) — Whether ot not to force a zone to become disabled even if its currently active

Usage

Lua (Direct):

ClearAmbientZoneState(zoneName, forceUpdate)

Lua (Hash):

Citizen.InvokeNative(0x218DD44AAAC964FF, zoneName, forceUpdate)
Back to AUDIO