You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client/electric_cl.lua
+4-15Lines changed: 4 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ if Config.ElectricVehicleCharging then
81
81
localmoney=nil
82
82
ifpurchasetype=="bank" thenmoney=QBCore.Functions.GetPlayerData().money['bank'] elseifpurchasetype=='cash' thenmoney=QBCore.Functions.GetPlayerData().money['cash'] end
83
83
FuelPrice= (1*Config.ElectricChargingPrice)
84
-
localvehicle=QBCore.Functions.GetClosestVehicle()
84
+
localvehicle=GetClosestVehicle()
85
85
86
86
-- Police Discount Math --
87
87
ifConfig.EmergencyServicesDiscount['enabled'] ==trueand (Config.EmergencyServicesDiscount['emergency_vehicles_only'] ==falseor (Config.EmergencyServicesDiscount['emergency_vehicles_only'] ==trueandGetVehicleClass(vehicle) ==18)) then
@@ -205,7 +205,7 @@ if Config.ElectricVehicleCharging then
0 commit comments