Hazard Zones
Exports
All client- & serversided exports included within this script. Exports provide callable functions that allow other resources to interact with this script's functionality.
If additional exports are required for your implementation, please submit a formal request through our ticketing system on the official Discord server.
Server Exports
No server-sided exports available at this time.
Client Exports
GetExposure
Returns the current exposure level of a player in a specific hazard zone.
exports['RxHazardZones']:GetExposure(zoneName)
zoneName
string required
Name of the hazard zone to check exposure for.
ClearExposure
Clears the exposure level for a specific zone or all zones.
exports['RxHazardZones']:ClearExposure(zoneName)
zoneName
string|nil
Name of the hazard zone to clear exposure for. If nil, clears exposure for all zones.
ToggleZone
Toggles a hazard zone on or off.
exports['RxHazardZones']:ToggleZone(zoneName, active)
zoneName
string required
Name of the hazard zone to toggle.
active
boolean required
true to enable the zone, false to disable it.
