Cuxial Gas Stations needs no SQL import and no inventory items. It creates its tables and loads its factory locations on first start.
Check the dependencies
These must be installed and working first:
- OneSync enabled on the server
ox_liboxmysqlcuxial_bridge, with one of the supported frameworks: QBox, QBCore or ESXsleepless_interactcuxial_gas_assetsandcuxial_maptiles, shipped with the script
Optional resources add features when they are running:
| Resource | With it | Without it |
|---|---|---|
Cuxial Fuel (cuxial_fuel) | Pumps sell from the station tanks at the owner's price, apply happy hours, hand out wash vouchers and can cause spills. Its settings and screens are managed from /gasadmin. | Fuel is sold when your own fuel script calls the exports. The panel's Fuel and Pumps tabs say so. |
Cuxial Garages (cuxial_garages) | The driver receives the keys of the run vehicle or detailing van, and loses them when it is returned. | No keys are handed out. Your key system must let the driver use the vehicle. |
A phone supported by cuxial_bridge | Owner notices arrive on the phone, and customers can request mobile detailing with a message. | Notices use the standard ox_lib notification. Mobile detailing is requested with /detailing. |
object_gizmo | Place in the station editor moves each point with a gizmo in the world. | Points are taken with Here from your position. |
Copy the resources
Place the four folders of the package inside your resources directory and keep their names:
cuxial_gasstationscuxial_gas_assetscuxial_maptilescuxial_fuel
cuxial_gas_assets holds the props, the detailing van, the pressure gun and the sounds. cuxial_maptiles holds the map images of the admin panel. cuxial_fuel is Cuxial Fuel, included in the package: it sells fuel from the station tanks and is optional. If you already have Cuxial Fuel, keep a single copy.
Cuxial Fuel also needs ox_inventory. It creates its own tables on first start.
Database
Nothing to import. On first start the resource:
- creates every
cuxial_gasstations_*table, including the ones for the panel settings (cuxial_gasstations_config) and the station editor (cuxial_gasstations_station_data); - loads the factory points from
install/seed_points.sql(delivery destinations, public pressure washers, each station's bays and valves, supply and wash points), only while the points table has none.
install/cuxial_gasstations.sql is a reference copy of the schema. You do not need to run it.
Set the convars
# Language (en and es are included)
setr ox:locale "en"
# Discord webhook for station logs (optional)
set cuxial_gasstations_webhook "https://discord.com/api/webhooks/..."
# Debug traces in the console (optional)
setr cuxial_gasstations_debug "0"The webhook goes in server.cfg, never in shared/config.lua. The convar name can be changed in logs.convar.
Give access to the admin panel
/gasadmin needs two things:
- the ACE group in
commands.admin.restricted,group.adminby default; - the permission in
admin.permission,adminby default, checked through Cuxial Bridge on every panel action.
The Fuel and Pumps tabs also check Cuxial Fuel's admin.permission, admin by default too. See Admin panel.
Allow the pressure gun in ox_inventory
Skip this step if you do not use ox_inventory.
The pressure washer puts a tool in the player's hands that is not an inventory item. With its default settings ox_inventory removes it at once. Add it to the ignore list:
setr inventory:ignoreweapons ["WEAPON_PRESSURE1"]If you already have an inventory:ignoreweapons line, add "WEAPON_PRESSURE1" to its list instead of writing a second line. The resource prints a warning in the client console (F8) when the entry is missing.
Start the resources
Start the script after its dependencies and after your framework:
ensure ox_lib
ensure oxmysql
# your framework here (qbx_core, qb-core or es_extended)
ensure cuxial_bridge
ensure sleepless_interact
ensure cuxial_gas_assets
ensure cuxial_maptiles
# optional
ensure object_gizmo
ensure cuxial_garages
ensure ox_inventory
ensure cuxial_fuel
ensure cuxial_gasstationscuxial_gas_assets and cuxial_maptiles must start before cuxial_gasstations, which depends on both. Without the first, the pressure washers, the detailing van and the pressure gun do not exist; without the second, the panel map shows up blue. Start cuxial_gas_assets, sleepless_interact and ox_inventory before cuxial_fuel.
If you add the resources while the server is running, run refresh in the console before ensure so the server sees them.
Check that it works
- Join the server and open the map. Every station shows its blip.
- Go to a station and use the Manage gas station interaction. The purchase dialog opens.
- Type
/gasadmin. The admin panel opens on Overview. - Open Gas stations and switch to the Map view: every station shows on the city map.
- Open Washing and place the first wash slot of a station. See Admin panel.
Next: adjust prices, limits and modules in Configuration or straight in the admin panel.
