Gas Station Interaction
Physical nozzle and rope system at gas stations with automatic fuel tank detection.
How It Works
- Approach a gas pump (detected by model hash within
Config.checkVehicleDistance) - Press E to grab the nozzle — a physical prop attaches to your hand with a rope
- Walk to a vehicle and press E to attach the nozzle to the fuel tank
- The fuel payment UI opens automatically
- Select fuel type, then pay with bank or cash
- Press E to detach and return the nozzle to the pump
Fuel Tank Detection
The script automatically finds the correct fuel tank bone on the vehicle:
petrolcap— Standard carspetroltank— Alternative carspetroltank_l— Left-side tankshub_lr— Motorcycleshandle_dside_r— Fallback
Rope Physics
- The nozzle is connected to the pump via a visible rope
- If the player walks too far from the pump, the rope detaches
- The nozzle can be dropped and picked back up
Pump Detection
The script recognizes gas pumps by their GTA object model hashes. 7 pump models are included by default in Config.pumpModels.
Configuration
| Option | Default | Description |
|---|---|---|
Config.Keys.Interact | 51 | Key for nozzle interactions (51 = E) |
Config.Keys.PurchaseGasCan | 47 | Key for purchasing gas can (47 = G) |
Config.checkVehicleDistance | 5 | Distance to check for nearby vehicles |
Config.wastingFuel | true | Waste fuel when spraying nozzle freely |
Config.pedType | "s_m_m_autoshop_01" | Gas station attendant ped model |
