Fire Supply Line - Configuration

Configuration

You can easily open the config.lua and configure the script to your liking in either notepad, notepad ++ or using Visual Studio Code..

The first section is called main, allowing you to set the following:

main = {
    commandName = "supplyline",
    spawnProp = true,
    supplyProp = `prop_supplyline`,
    defaultSeconds = 120, -- Before they need to connect to a supply line
    enableAcePermissions = false, -- Enable ace permissions for the supply line command
    supplyLineDistance = 10.0, -- To connect initially
    maximumDistance = 200.0, -- Furthest distance you can get away from a vehicle with a supply line
    connectToSupplyLineKey = {0, 191},
    helpKey = "INPUT_FRONTEND_RDOWN",
}

To change the activation key (helpKey), replace it with your desired key from here

You can see from the above config just how configurable the resource is, allowing you to set many features such as the default seconds for water supply, supply line cancel distance and the key to press to connect to a supply line.

Secondly, the translations section allows you to convert the resource to another language.

Configuring Fire Vehicles: You’ll be required to configure all fire vehicles and add other vehicles that are able to be used with this resource. You will need to define a few key variables:

vehicles = {
    {
        model = `firetruk`,
        bone = "",
        offSet = {2.0, -18.0, -1.2},
        rotation = {0.0, 0.0, 180.0},
    },
}

Firstly, copy the section between the brackets and paste it below, making sure it looks like this:

vehicles = {
{
    model = `firetruk`,
    bone = "",
    offSet = {2.0, -18.0, -1.2},
    rotation = {0.0, 0.0, 180.0},
    },
{
    model = `firetruk2`,
    bone = "",
    offSet = {2.0, -18.0, -1.2},
    rotation = {0.0, 0.0, 180.0},
    },
}

You can see from the above example that we’ve setup the base game model called firetruk. We’ve left the bone name blank, as we want to connect this to the centre of the truck, then move it backwards with the offSet.

Change the new "firetruk2" to be whatever your vehicle is spawned in by/what the files are called.

The offSet section allows you to define how we spawn in the supply line on the vehicle.

offSet = {LEFT/RIGHT, BACKWARD/FORWARD, DOWN/UP}

This is how the offSet is defined. As you can see, a positive number on the first number would go right, whereas a negative number in the middle would go back.

In our example, we have set up the firetruk to go 2m left, 18m backwards and 1.2m down. This is a great position and we recommend copying this for all other fire trucks you configure.

rotation = {X, Y, Z}

The rotation works the same and this is how it is defined. For example, you could rotate the supply line and make it spawn in at the side of the fire truck, depending on the model used for the vehicle.

Job check

Each config framework section has an identical sub-section for job checks:

jobCheck = {
    ESX = {
        enabled = true,
        checkJob = {
            enabled = true, -- Enable this to use ESX job check
            jobs = {"fire", "police"} -- A user can have any of the following jobs, allowing you to add multiple
        }
    },
    -- We've added vRP integration. All you need to do is enable it below. Then, configure if you wish to check for groups or permissions, or even both
    vRP = {
        enabled = false,
        checkGroup = {
            enabled = false, -- Enable this to use vRP group check
            groups = {"fire", "admin"}, -- A user can have any of the following groups, meaning you can add different jobs
        },
        checkPermission = {
            enabled = false, -- Enable this to use vRP permission check
            permissions = {"player.kick"} -- A user can have any of the following permissions, allowing you to add multiple
        },
    },
    -- We've added QBCore integration. All you need to do is enable it below. Then, configure if you wish to check for jobs or permissions, or even both
    QBCore = {
        enabled = false,
        checkJob = {
            enabled = false, -- Enable this to use QBCore job check
            jobs = {"fire"}, -- A user can have any of the following jobs, meaning you can add different jobs
        },
        checkPermission = {
            enabled = false, -- Enable this to use QBCore permission check
            permissions = {"god"}, -- A user can have any of the following permissions, allowing you to add multiple
        },
    },
}

Last updated