Page cover

folder-arrow-downInstallation

This page will give you the information you need to setup this resource.

circle-exclamation

Dependencies

Polyzonearrow-up-right by mkafrin qb-corearrow-up-right by qbcore-framework qb-targetarrow-up-right by qbcore-framework or ox_targetarrow-up-right by Overextended qb-menuarrow-up-right by qbcore-framework or ox_lib's context menuarrow-up-right by Overextended MTL Brickade Packagearrow-up-right by AGModsTeam (Used for refilling the gasstations) (optional) tasksarrow-up-right by thommie (optional)

How to install

  • Download and unzip the thommie-fueling.zip

  • Add "ensure thommie-fueling" to your server.cfg

  • Import the provided gasstations.sql to your database

  • (re)start your server and you are done.

How to add new locations

You can create new gasstations very easy, you go to your config.lua and you will search for Config.GasStations (line 35 by default). Now you can follow the template we have made and change the values.

Please note that you have to match the id with the id inside of the database in order to have everything work properly.

Gasstation Template:

['ID'] = {
    label = 'RON Example', -- This is the location where the helicopter will spawn
    brand = 'ron', -- Here you can choose the gasstation their brand (ron, globe, xero or ltd)
    fuelProp = 'prop_gas_pump_1a', -- All the gas pumps represent other brands (1a = ron, 1b = globe, 1c & old3 = ltd, 1d & old2 = xero)
    price = {min = 3, max = 6, current = nil}, -- The fuelprices, you fill in the min and max and it automaticly sets the current so leave this to nil.
    fuellevel = nil, -- This wil be automatically been taken from the database.
    polyheight = {min = 0.0, max = 0.0},
    polyzone = { -- Here you can create the polyzone that will spawn the props needed and will check if someone is inside zone.
        vector2(0.0, 0.0)
        vector2(0.0, 0.0)
        vector2(0.0, 0.0)
        vector2(0.0, 0.0)
    },
    refuel = {pos = vector4(0.0, 0.0, 0.0, 0.0), prop = 'prop_storagetank_02b'}, -- All the options for refueling the gasstation with the refueling (side)job.
}

Last updated