Installing Refueling Nozzles V2
Refueling Nozzles V2 ships as two resources: the script and its models pack. Both must be started, and the models pack must start before the script.
1. Remove LegacyFuel and any other fuel script
Refueling Nozzles V2 is a complete fuel system and takes LegacyFuel's place. Stop and delete LegacyFuel, and any other fuel script you run — two fuel scripts on one server fight over every vehicle's fuel level.
You do not have to edit anything that used LegacyFuel. The script declares provide 'LegacyFuel', so:
- scripts that call
exports['LegacyFuel']:GetFuel/SetFuelget their answer from Refueling Nozzles V2 - scripts that list LegacyFuel as a dependency still start
- the
_FUEL_LEVELdecor and the game's own fuel level stay in sync, exactly like LegacyFuel
2. Drop the folders in
Put both folders from the download into your resources directory. Keeping them in one parent folder is fine:
resources/[toxic]/refuelingnozzlesmodels
resources/[toxic]/refuelingnozzlesv23. Add them to server.cfg, in this order
ensure refuelingnozzlesmodels
ensure refuelingnozzlesv2Order matters.refuelingnozzlesmodelscarries the EV charger, the EV plug, the tanker hose handle, the fill stand and fill well, the hose textures (rope.ytd) and two map files: the 86 EV chargers placed around the map, and the tanker job's fill props at every gas station. If it starts afterrefuelingnozzlesv2, the script asks for models that are not streamed yet and you get no EV plug, no chargers and no tanker handle.
Start your framework, your target script and ox_lib (if your notifications use it) before both.
4. Choose your framework
Open refuelingnozzlesv2/config.lua and set one of:
UseESX = true— and alsoUseNewESX = trueon newer ESX versionsUseQBCORE = true- leave all of them
falsefor standalone
On standalone there is no wallet: pumps give fuel away and skip the payment step, jerry cans are free and the tanker job pays nothing. Set StandalonePrices = true to still show the daily prices and the payment step without charging anything — handy for freeroam servers and showcases.
5. Targets
ox_target: UseTarget = true and UseOXTarget = true.
qb-target: UseTarget = true and UseOXTarget = false.
Leave UseTarget = false for plain key prompts (E and G).
6. Jerry cans as an item
By default a bought jerry can goes straight onto the player as the WEAPON_PETROLCAN weapon. On an inventory server, hand it out as an item instead:
- ox_inventory:
UseOXInventory = true - ESX / QBCore item:
UseJerryCanAsItem = true
See Anticheat and inventories.
7. Whitelist the props
The nozzle, the EV plug and the tanker handle are networked props, the jerry can is a weapon, and the tanker job spawns its own vehicles. Your anticheat has to allow them — see Anticheat and inventories. Skipping this is the most common reason the nozzle "floats" or vanishes.
8. If you already stream a rope.ytd
Read Rope textures before you start the server. If another resource already streams rope.ytd — including our Fire Hose or Pressure Washer — the two collide.
9. OneSync
Run the server with OneSync on (the default on current server artifacts). Every player sees the same fuel in every vehicle, and the tanker job spawns its trucks, aircraft and boats from the server — both need OneSync.
Escrow
The script is protected by Cfx.re asset escrow; config.lua and locale.lua are open for you to edit. Download it from Granted assets on Keymaster, keep the folder names exactly as they are, and restart the server after the first install. See Installing a resource.
