Events
Server Events
hazardzones:onZoneEnter
Triggered when a player enters a hazard zone.
RegisterNetEvent('hazardzones:onZoneEnter', function(playerId, zoneName, zoneType) end)
Server ID of the player who entered the zone.
Name of the hazard zone entered.
Type of the hazard zone (e.g., 'radiation').
hazardzones:onZoneExit
Triggered when a player exits a hazard zone.
RegisterNetEvent('hazardzones:onZoneExit', function(playerId, zoneName, zoneType, currentExposure) end)
Server ID of the player who exited the zone.
Name of the hazard zone exited.
Type of the hazard zone (e.g., 'radiation').
The player's exposure level when exiting the zone.
hazardzones:onBlockerItemUsed
Triggered when a player uses a blocker item (e.g., radiation pills).
RegisterNetEvent('hazardzones:onBlockerItemUsed', function(playerId, item, blocker) end)
Server ID of the player who used the blocker item.
Item name of the blocker used.
Blocker configuration data containing type, duration, exposure, and damage properties.
hazardzones:onZoneToggled
Triggered when an admin toggles a zone on/off via command or export.
RegisterNetEvent('hazardzones:onZoneToggled', function(playerId, zoneName, active) end)
Server ID of the player who toggled the zone.
Name of the hazard zone toggled.
true if the zone was enabled, false if disabled.
hazardzones:onOutfitItemUsed
Triggered when a player uses an outfit item (e.g., hazmat suit).
RegisterNetEvent('hazardzones:onOutfitItemUsed', function(playerId, itemName) end)
Server ID of the player who used the outfit item.
Item name used to equip/unequip the outfit (e.g., 'hazmat_suit').
Client Events
hazardzones:onZoneEnter
Triggered when the local player enters a hazard zone.
AddEventHandler('hazardzones:onZoneEnter', function(zoneName, zoneType) end)
Name of the hazard zone entered.
Type of the hazard zone (e.g., 'radiation').
hazardzones:onZoneExit
Triggered when the local player exits a hazard zone.
AddEventHandler('hazardzones:onZoneExit', function(zoneName, zoneType, currentExposure) end)
Name of the hazard zone exited.
Type of the hazard zone (e.g., 'radiation').
The player's exposure level when exiting the zone.
