Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

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

Dependencies

Polyzone by mkafrin qb-core by qbcore-framework qb-target by qbcore-framework or ox_target by Overextended qb-menu by qbcore-framework or ox_lib's context menu by Overextended MTL Brickade Package by AGModsTeam (Used for refilling the gasstations) (optional) tasks 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