Electric charging

HZ-Fuel places 26 chargers at fuel stations across the map. Each has its own screen, a charging cable with its plug, and a contactless card reader. Electric vehicles charge here; the pumps refuse them.


Charging

  1. Park the electric vehicle near a charger and get out. Press E to take the plug: the cable follows you, its slack on the ground.
  2. Press E at the car's charging port to plug in.
  3. Start charging: your character taps a bank card on the charger's contactless reader.
  4. On the screen, pick FAST or NORMAL, then START CHARGING.
  5. The screen shows the state of charge, the energy delivered, the speed and the total. Stop whenever you want.
  6. Unplug, then put the plug back on the charger.
You pay at the end, by card: the bank account with cardOnly (default). Charging stops on its own when the battery is full or the money runs out.

When nobody uses a charger, its screen shows a welcome page with the rates.


Charge types

TypePriceSpeed
Fast$2.50 per 1 %0.5 % every 0.8 s
Normal$1.80 per 1 %0.5 % every 2 s
Set them in electric.chargeTypes (price per 1 %, time in seconds per 0.5 %). The battery size of each model, in kWh, gives the energy and the time shown on screen (electric.batterySizes, 80 kWh by default).

Electric vehicles

These models are electric by default: voltic, voltic2, caddy, caddy2, caddy3, surge, iwagen, raiden, airtug, neon, omnisegt, cyclone, tezeract, rcbandito, imorgon, dilettante, dilettante2, khamelion.

Add your add-on electric cars to electric.electricVehicles by spawn name.


Placing chargers

Each charger is one line of electric.chargerLocations:

{ prop = 'hz_charger_modern_a', location = vector4(175.9, -1546.65, 28.26, 45.29), ropeLength = 7.5 },

Add a line to place a charger, remove one to take it away. location is the position and heading, ropeLength how far the cable reaches in metres.