infoConfiguration

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


Framework

circle-info

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

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

Locations

circle-info

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

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

Config.UseLocations = false

Charging Radius

circle-info

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

circle-info

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

circle-info

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

circle-info

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

circle-info

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 HEREarrow-up-right


Vehicle Configuration

circle-info

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