Aircraft pumps
Helicopter and plane refueling in FiveM: Jet A-1 pumps fixed in config.lua or placed in game with /aircraftpump add, remove and list. Longer hose, faster fill.
Helicopters and planes refuel at their own pumps, with Jet A-1. The hose reaches further (18 metres) and fills faster (2.5 litres per second), and everything else works like a car: pay, take the hose, plug it in and wait.
Fixed pumps in the config
Add them to Config.AircraftPumps, one per line, with position, heading and name:
Config.AircraftPumps = {
{ coords = vec4(-1145.9, -2864.1, 12.95, 150.0), label = 'Airport helipad' },
}
Config.AircraftPumpModel = 'prop_gas_pump_old2'
The resource places the pump at that spot with the Config.AircraftPumpModel model.
Placing them in game with /aircraftpump
Admins can add and remove pumps without touching the config. They're saved on the server and stay after a restart.
| Command | What it does |
|---|---|
/aircraftpump add [name] | Starts placing a pump in front of you. The name is optional |
/aircraftpump remove | Removes the nearest placed pump (within 3 metres) |
/aircraftpump list | Lists every aircraft pump in the server console |
With add you get a preview of the pump:
| Key | Action |
|---|---|
| ← / → | Rotate |
| E | Place |
| Backspace | Cancel |
Important
The command needs the ACE permission in Config.AdminAce (default eleven.fuel.admin). Add to server.cfg: add_ace group.admin eleven.fuel.admin allow.
remove only removes pumps placed with the command. The ones in Config.AircraftPumps are removed in the config.
Which vehicles refuel where
| Option | Default | What it does |
|---|---|---|
Config.AircraftAtRoadPumps | false | true = aircraft can also refuel at road pumps |
Config.CarsAtAircraftPumps | false | true = cars can also refuel at aircraft pumps |
Aircraft pumps sell the fuels with air = true in Config.FuelTypes (by default, Jet A-1). Every aircraft uses kerosene: if you give one gasoline, see Wrong fuel.
Where the hose plugs in
If the model has a filler, the hose goes there. If not, it goes to the Config.FillPoint.air point. For a specific model, use Config.FillPointModels:
Config.FillPointModels = {
polmav = { back = 1.0, height = 0.45, out = 0.15, yaw = 0.0 },
}
What each value means is in Configuration.