Framework integration

Automatic Fires can be spawned in relation to the number of online firefighters or any other job you select. Straight out of the box, we support QB-Core, vRP, ESX and QBX.

To begin setting this up, navigate to the automaticFires section of the config.lua file and then navigate to the main = { section.

Here, you'll see the options for all four frameworks:

 main = {
            QBCore = { -- This enables the job check for QBCore
                enabled = false,
                jobs = {"fire", "firefighter"},
            },
            ESX = {  -- This enables the job check for ESX
                enabled = false,
                jobs = {"fire", "firefighter"},
            },
            vRP = {   -- This enables the job check for vRP
                enabled = false,
                groups = {"fire", "firefighter"},
                permissions = {}, -- Leave blank if you do not want to use permissions to spawn fires
            },
            QBX = { -- This enables the job check for QBX
                enabled = false,
                checkJob = {
                    enabled = false, -- Enable this to use QBX job check
                    jobs = {"fireman"}, -- A user can have any of the following jobs, meaning you can add different jobs
                }
            },
},

This is very similar to setting up permissions for commands. You can set enabled to true to enable a framework. For vRP, you can check for either groups or permissions. You can leave any brackets blank to not check for anything.

Any jobs or groups entered into brackets must be wrapped in speech marks "" and separated by a comma. Any incorrect formatting will likely lead to an error.

Last updated