Zea Development - Documentation
StoreWebsiteDiscord
  • Welcome
  • General
    • Downloading Resources
    • Transferring Resources
    • Resource Support
    • Escrow Errors
  • Our Resources
    • z_hose
      • Resource Configuration
        • Configuration Modules
      • Compatibility with ox_inventory
      • Resource Usage
      • Developer Resources
        • Client Exports
        • Server Exports
    • z_boot (Coming Soon!)
      • Resource Configuration
        • Configuration Modules
        • Item Creation
      • Developer Resources
        • Client Exports
    • z_els
      • Resource Configuration
      • Resource Usage
      • Developer Exports
      • Creating Patterns
      • Directional Types
    • z_fires
      • Resource Configuration
      • JSON Configuration
      • Resource Usage
      • Developer Exports
      • Materials List
    • z_ppvfan
      • Resource Configuration
      • Resource Usage
    • zTurnout-System
      • Resource Configuration
      • Resource Usage
      • Trigger Events
    • zWigWags
      • Resource Configuration
      • Resource Usage
      • Trigger Events
    • zFire-Alarm
      • Resource Configuration
      • Resource Usage
    • z9m-Ladder
      • Resource Configuration
      • Resource Usage
    • z105m-Ladder
      • Resource Configuration
      • Resource Usage
    • z135m-Ladder
      • Resource Configuration
      • Resource Usage
    • zCustody-Alarm
      • Resource Configuration
      • Resource Usage
    • zFire-Pole
      • Resource Configuration
      • Resource Usage
    • zTurnout-Rack
      • Resource Configuration
      • Resource Usage
    • zPager
      • Resource Configuration
      • Resource Usage
    • zTurnouts
      • Resource Configuration
      • Resource Usage
Powered by GitBook
On this page
  1. Our Resources
  2. z_fires

JSON Configuration

This page provides comprehensive information about our configuration files, particularly the JSON formats.

PreviousResource ConfigurationNextResource Usage

Last updated 6 days ago

Departments, districts and incidents all have their own JSON configuration files, allowing you to edit and configure the settings to your needs. This can be configured through a GUI ( the recommended method ) , utilising our incident configurator. See


Departments

Departments are defined in the departments.json file, found in the path /settings/jsons/departments.json

Departments are stored in objects, with the key for each object being a unique short code for that department ( eg LSCFD ). Departments have the following properties:

Colour This field allows you to configure the cosmetic appearance of the department.

Department Name The department name gives a title to the department. It is referenced as name in the object.

Description The description allows you to briefly give a free text outline of any credible information you may wish to include.

District The district field takes the ID of a district, as defined in the districts JSON file. A department will receive incidents from within the defined district.

Framework This field allows you to configure the behaviour of the department with your servers framework. Supported frameworks include ESX, qb-core, qbox, and ace permissions. The object remains empty when there are no frameworks selected, but when one is selected, its name is used as the key in upper case, as ESX, QBCORE, QBOX and ACE.

As below in the example, the parameters include enabled of type boolean, jobs of type array and autoBook of type boolean. Jobs allows you to define the jobs which users are allowed to book on as, while autoBook allows you to configure if the system should automatically book users on for incidents without the need to do /bookduty.

Icon This field allows you to configure an fa icon that will be used to graphically identify the department.

Incident Intervals The customisation of intervals allows you to customise the frequency of incidents. There is a built in delay between incidents as a standard, but this allows you to enhance the delay between incidents and create variability in the frequency.

The interval object takes 2 parameters, of min and max with both the values being integers in seconds representing the minimum time between incidents and maximum time between incidents respectively. These are used as bounds in a random function.

Minimum Staff Online This field allows you to configure at what number of booked on users to that specific department, will automatic incidents start being generated.

Short Code The short code appears in two places. First, as the key for the object within the departments.json, and secondly as a field in the object as shortCode.

Each short code must be unique to that department.

E.G departments.json
{
    "LSCFD": {
        "district": "district_index_1",
        "shortCode": "LSCFD",
        "name": "Los Santos City Fire Department",
        "description": "Fire department for the City of Los Santos 2",
        "minStaffOnline": 1,
        "interval": {
            "min": 10,
            "max": 60
        },
        "frameworks": {
            "ESX": {
                "enabled": true,
                "jobs": [
                    "Fire"
                ],
                "autoBook": true
            }
        },
        "icon": "fa-house",
        "color": "#ff5733",
        "id": "department_index_1"
    }
}

Districts

Departments are defined in the districts.json file, found in the path /settings/jsons/districts.json

Districts are stored in objects, with the key for each object being a unique ID for that district ( eg district_index_1). Districts have the following properties:

Colour This field allows you to configure the cosmetic appearance of the district.

Description This field allows you to give free text information about the district

ID This unique field is used to identify the district. It is used as the key in the object, and as a field labelled id.

Name This field allows you to give a name to the district

E.G districts.json
{
    "district_index_1": {
        "description": "City of Los Santos",
        "color": "#3366ff",
        "name": "Los Santos City",
        "id": "district_index_1"
    }
}

Incidents

Incidents are defined in the Incidents.json file, found in the path /settings/jsons/Incidents.json

Incidents are stored in objects, with the key for each object being a unique short code for that incident ( eg incident_index_1 ). Incidents have the following properties:

ID This unique field is used to identify the incident. It is used as the key in the object, and as a field labelled id.

Position TODO

E.G incidents.json
{
    "ic_index_11": {
        "position": {
            "z": 31.41330909729004,
            "y": 6182.02392578125,
            "x": -245.9764862060547,
            "heading": 230.3283538818359
        },
        "lastModified": 1746210674241,
        "address": "Duluoz Ave, Paleto Bay",
        "department": "department_index_2",
        "enabled": true,
        "data": [
            {
                "burnoutTime": 99999,
                "effect": "grass2",
                "scale": 0.7,
                "propModels": [
                    "prop_dumpster_4a"
                ],
                "offset": {
                    "z": 0.2,
                    "y": 0,
                    "x": 0
                },
                "position": {
                    "z": 32.0130500793457,
                    "y": 6175.68115234375,
                    "x": -273.8282775878906
                },
                "spreadSize": 50,
                "title": "Bin #1",
                "type": "prop",
                "description": "",
                "canSpread": true
            },
            {
                "burnoutTime": 4600,
                "effect": "veh1",
                "scale": 5,
                "canSpread": true,
                "models": [
                    "sultan"
                ],
                "offset": {
                    "z": 0.5,
                    "y": 0.02,
                    "x": 0.03
                },
                "spreadSize": 50,
                "title": "Vehicle",
                "type": "vehicle",
                "description": "",
                "position": {
                    "z": 31.41330909729004,
                    "y": 6182.02392578125,
                    "x": -245.9764862060547,
                    "heading": 230.3283538818359
                }
            },
            {
                "burnoutTime": 4600,
                "spreadSize": 50,
                "scale": 2,
                "canSpread": true,
                "position": {
                    "z": 30.50432395935058,
                    "y": 6185.17724609375,
                    "x": -247.978271484375
                },
                "title": "Grass",
                "type": "grass",
                "description": "",
                "effect": "grass1"
            },
            {
                "burnoutTime": 4600,
                "spreadSize": 50,
                "scale": 2,
                "type": "interior",
                "canSpread": true,
                "position": {
                    "z": 30.71638107299804,
                    "y": 6009.69677734375,
                    "x": -446.4977416992188
                },
                "title": "Interior",
                "roomKey": "1102969540",
                "description": "",
                "effect": "interior1"
            }
        ],
        "id": "ic_index_11",
        "title": "Test for me",
        "spawnChance": 90,
        "description": "Members of the public have reported a bin fully involved in flames in a alley way.",
        "district": "district_index_2"
    }
}

Incident Configurator
Page cover image