Skip to main content

Gas Station Interaction

Realistic gas station interaction with nozzle and rope physics

This section

Gas Station Interaction

Physical nozzle and rope system at gas stations with automatic fuel tank detection.

How It Works

  1. Approach a gas pump (detected by model hash within Config.checkVehicleDistance)
  2. Press E to grab the nozzle — a physical prop attaches to your hand with a rope
  3. Walk to a vehicle and press E to attach the nozzle to the fuel tank
  4. The fuel payment UI opens automatically
  5. Select fuel type, then pay with bank or cash
  6. 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 cars
  • petroltank — Alternative cars
  • petroltank_l — Left-side tanks
  • hub_lr — Motorcycles
  • handle_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

OptionDefaultDescription
Config.Keys.Interact51Key for nozzle interactions (51 = E)
Config.Keys.PurchaseGasCan47Key for purchasing gas can (47 = G)
Config.checkVehicleDistance5Distance to check for nearby vehicles
Config.wastingFueltrueWaste fuel when spraying nozzle freely
Config.pedType"s_m_m_autoshop_01"Gas station attendant ped model