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 and ESX.

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 three 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
},

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