Anticheat and inventories
Refueling Nozzles V2 creates a few props while players use it, gives the jerry can as a weapon, and the tanker job spawns its own vehicles. Anticheats and inventories that police entities or weapons delete them the moment they appear, which looks exactly like the script being broken: the nozzle floats or vanishes, the plug never reaches the car, the jerry can disappears.
Props players create (whitelist these)
These are networked, so every player sees them, and each one is created by the player using it:
prop_cs_fuel_nozle— the fuel nozzle, in the hand and in the cartoxic_ev_plug— the EV charging plugtoxic_tanker_nozzle— the tanker job's hose handle, on the loading and the delivery hose
If your anticheat has an object whitelist or blocks objects created by players, add all three. If the nozzle works with the anticheat off and not with it on, that is your answer.
The jerry can weapon
WEAPON_PETROLCAN is given straight to the player when the jerry can is not an inventory item. Add it to your anticheat's allowed-weapons list.
Vehicles the tanker job spawns
The server spawns these, so most anticheats trust them — add them to a vehicle whitelist if you run one:
- the rig:
phantom+tanker(TruckModel/TrailerModel) - aircraft stops:
dodo,cuban800,duster,velum,velum2,mammatus,maverick,supervolito,frogger,buzzard2,swift,shamal,luxor,luxor2,nimbus,miljet,jet,titan,cargoplane - boat stops:
squalo,jetmax,tropic,speeder,suntrap,dinghy,marquis,toro,longfin
These are the shipped lists under Config.TankerJob.Aircraft.Types and Config.TankerJob.Boats.Types — any model you add there is spawned too.
Local props
These only exist in each player's own game and are never networked. They only matter if your anticheat also checks local objects:
toxic_ev_charger— chargers you add underChargerLocations(the 86 shipped ones are part of the map file)prop_gas_pump_1d— the marina pumps (BoatStations)toxic_ev_charger_dock— the cable hanging in a charger's holstertoxic_fill_stand/toxic_fill_well— the tanker fill props, where the script spawns themtoxic_tanker_nozzle— the idle loading hose handle at the depotprop_byard_float_02— the floating jetty sections at boat stopsprop_ld_test_01— hidden helper props that hold the hose ends
Ropes
Every hose is a game rope. If your anticheat blocks or deletes ropes, allow this resource, or the hoses never appear.
ox_inventory
Set Config.UseOXInventory = true. The jerry can is then handed out as the WEAPON_PETROLCAN item, and ox_inventory manages it like any other weapon.
If you would rather keep the can as a plain weapon, tell ox_inventory to leave it alone in your server.cfg:
setr inventory:ignoreweapons ["WEAPON_PETROLCAN"]ESX and QBCore items
Set Config.UseJerryCanAsItem = true and the can is given as an inventory item instead of a weapon. The item has to exist in your framework: WEAPON_PETROLCAN on ESX, weapon_petrolcan on QBCore.
What's in the can
The can's litres are kept on the weapon's ammo, so an inventory keeps them the way it always has. Which fuel is in it — 95, 98, diesel or a mix — can be saved and restored with the jerry can exports. See Exports and events.
Other inventories
The principle is the same whatever you run — the inventory has to be told to leave WEAPON_PETROLCAN alone, or to hand it out as an item. Look for an ignore list, a whitelist, or a "non-managed weapons" setting.
