Documentation Index
Fetch the complete documentation index at: https://axeldevelopment.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Follow these steps to install the script:
- Download the script from Cfx Portal.
- Install All Dependencies. You can check the list here: Dependencies.
- Extract the
axel_gasstation folder to your resources.
- Run the SQL file found in the script folder.
- Set the item in your inventory script.
- Add
ensure axel_gasstation to your server.cfg.
- Restart your server and enjoy :)
- IN CFG
ensure ox_lib
ensure ox_target (or qb-target)
ensure oxmysql
ensure es_extended (or qb-core)
ensure ox_inventory (or qb-inventory)
ensure axel_gasstation
ensure axel_fuel
Inventory Image
ITEM - ox_inventory
['gas_loyalty_card'] = {
label = 'Loyality Card',
weight = 0,
stack = false,
close = true,
client = {
image = 'gas_loyalty_card.png',
}
},
ITEM - qb-inventory
['gas_loyalty_card'] = {['name'] = 'gas_loyalty_card', ['label'] = 'Gas Loyalty Card', ['weight'] = 0, ['type'] = 'item', ['image'] = 'gas_card.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Gas Discount Card'},
ITEM - jaksam_inventory
- from the menu you add the item, and look carefully if the name is in lowercase letters, if not you should change it.
SQL FILE
CREATE TABLE IF NOT EXISTS `gas_stations` (
`station_id` varchar(50) NOT NULL,
`owner` varchar(60) DEFAULT NULL,
`owner_name` varchar(100) DEFAULT 'State Owned',
`custom_name` varchar(50) DEFAULT NULL,
`price` double DEFAULT 20.0,
`electricity_price` double DEFAULT 25.0,
`balance` int(11) DEFAULT 0,
`fuel_stock` int(11) DEFAULT 0,
`electricity_stock` int(11) NOT NULL DEFAULT 0,
`employees` longtext DEFAULT '[]',
`xp` int(11) DEFAULT 0,
`level` int(11) DEFAULT 1,
`last_active` int(11) DEFAULT 0,
`last_tax_paid` int(11) DEFAULT 0,
`last_weekly_reset` int(11) DEFAULT 0,
`total_customers` int(11) DEFAULT 0,
`total_earnings` double DEFAULT 0.0,
`weekly_earnings` double DEFAULT 0.0,
PRIMARY KEY (`station_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE gas_stations ADD COLUMN jerrycan_price INT DEFAULT 100;
ALTER TABLE gas_stations ADD COLUMN jerrycan_elec_price INT DEFAULT 50;