SafeZone
Description
SafeZone protects players and vehicles in configured areas and restricts actions such as firing, melee attacks and restraining players. Protection can continue for a set time after a player leaves the zone. Servers can show the zones through Map.
Configuration
Default configuration
SafeZone.json
json
{
"m_Enable": 0,
"m_Logging": 1,
"m_ShowOnMap": 1,
"m_TimeDelay": 10,
"m_Zones": [
{
"m_Name": "Safe Zone",
"m_Icon": "shield",
"m_Color": {
"m_A": 255,
"m_R": 0,
"m_G": 255,
"m_B": 0
},
"m_Positions": [
{
"m_X": 8228.21,
"m_Y": 519.3,
"m_Z": 9033.19,
"m_R": 300.0
},
{
"m_X": 8093.45,
"m_Y": 508.8,
"m_Z": 9330.63,
"m_R": 300.0
}
],
"m_IsActive": 1,
"m_3DMarker": 1
}
],
"m_Messages": {
"m_Enter": "You just entered a safe zone.",
"m_Time": "You are leaving the zone in %TimeSeconds% seconds.",
"m_Exit": "You just left a safe zone."
},
"m_NotificationTime": 10,
"m_NotificationInChat": 0,
"m_DisableExitCountdownNotifications": 0
}Options
| Option | Type | Description |
|---|---|---|
m_Enable | bool | With 1, enables the module. With 0, disables it. |
m_Logging | bool | With 1, logs player entries and exits. With 0, skips those records. |
m_NotificationInChat | bool | With 1, sends zone messages through Chat. With 0, shows notifications. |
m_NotificationTime | int | Display time in seconds for zone notifications. |
m_TimeDelay | int | Seconds of protection after leaving. With 0, protection ends immediately. |
m_DisableExitCountdownNotifications | bool | With 1, hides countdown updates while keeping protection. With 0, shows them. |
m_ShowOnMap | bool | With 1, sends zones to Map. With 0, omits them. |
m_Messages | object | Zone messages. |
m_Zones | array<object> | Configured zones. |
m_Messages
| Option | Type | Description |
|---|---|---|
m_Enter | string | Message on entry. |
m_Exit | string | Message when protection ends. |
m_Time | string | Countdown message supporting %TimeSeconds%. |
m_Zones[]
| Option | Type | Description |
|---|---|---|
m_Name | string | Name used on the map. |
m_IsActive | bool | With 1, enables protection for this zone. With 0, excludes it from protection checks. |
m_Icon | string | Map icon name. |
m_3DMarker | bool | With 1, requests a 3D map marker. With 0, omits the 3D marker. |
m_Color | object | Map marker color. |
m_Positions | array<object> | Centers and radii covered by the zone. |
m_Zones[].m_Color
| Option | Type | Description |
|---|---|---|
m_A | int | Opacity channel, from 0 to 255. |
m_R | int | Red channel, from 0 to 255. |
m_G | int | Green channel, from 0 to 255. |
m_B | int | Blue channel, from 0 to 255. |
m_Zones[].m_Positions[]
| Option | Type | Description |
|---|---|---|
m_X | float | World X coordinate in metres. |
m_Y | float | Elevation in metres. |
m_Z | float | World Z coordinate in metres. |
m_R | float | Radius in metres. |
