Configuration

Below we have explained some of the key features found in our Config file within the EV Charging Script.


Framework

Select your framework (by default the script will auto detect)

Config.Framework = 'auto' -- 'auto', 'esx', 'qbcore', 'standalone'

Locations

If you wish to use our default locations ensure this is set to true for the First time running the script.

Ensure you turn this to false after your first load to ensure no issues within the JSON file.

Config.UseLocations = false

Charging Radius

This setting will determine how close a vehicle needs to be to the prop to trigger the Charging UI.

Config.ChargingStationRadius = 5.0

Charging Characteristics

The charging characteristics can be customised to your economy, Below is an example for how the script calculates the final charge to bill the player. 25% needed ÷ Percentage Per KWh (2.0) = 12.5 kWh × Charge Cost Per KWh (1.0) = £13 (Rounded up)

Config.TimePerPercent = 0.3 -- Time in seconds per 1% charge
Config.MaxChargeLevel = 100
Config.ChargeCost = 1.0 -- Cost per kWh in currency
Config.MinChargeAmount = 1 -- Minimum charge amount percentage
Config.PercentagePerKWh = 2.0 -- Percentage of charge per kWh
Config.RequireDriverSeat = false
Config.FlashHazardsWhileCharging = true

Authorised Licenses

You can set the Allowed members that will be authorised to place, edit and delete your EV Charging Stations. You can grab you License from your TxAdmin Console.


Edit Menu Autodetection

The edit menu allows for autodetection if configured to do so, this will make it so you can walk within the set Distance and it will automatically open the edit menu rather than using the /editEV command.


Keybindings

The Keybindings to move the prop around during placement and editing can be customised in the Config file to ensure it doesn't clash with other script you may have. The keybinds can be found here -> CLICK HERE


Vehicle Configuration

In this section you can set the vehicles you wish to ALLOW to charge at these locations, this could include Emergency vehicles if you have a modern fleet of EV service vehicles.


Config File before edits

Last updated