I tried to use the export code on your docs but don't work
config file
Customize.GetVehFuel = function(Veh)
return GetVehicleFuelLevel(Veh)-- exports["LegacyFuel"]:GetFuel(Veh)
end
i tried to change like this
function StoreVehicleInGarage(vehicle)
local plate = GetVehicleNumberPlateText(vehicle)
local fuelLevel = exports["lc_fuel"]:GetFuel(vehicle)
TriggerServerEvent('vehiclesStored', plate, fuelLevel)
end
Customize.SetVehFuel = function(Veh, Fuel)
return GetVehicleFuelLevel(Veh) -- exports['LegacyFuel']:SetFuel(Veh, data.Table.fuel)
end
function SpawnVehicle(modelHash, fuel)
local vehicle = CreateVehicle(modelHash, coords.x, coords.y, coords.z, true, false)
exports["lc_fuel"]:SetFuel(vehicle, fuel)
end
client file
local fuel = Customize.GetVehFuel(currentVeh)
i change like this
local fuelLevel = exports["lc_fuel"]:GetFuel(vehicle)
Customize.SetVehFuel(Veh, data.fuel)
SetVehicleFuelLevel(veh, 100.0)
i don't know how to put