#LC Fuel JG advanced garage

23 messages · Page 1 of 1 (latest)

clear root
#

Could you please send me an export to set fuel. When the car is taken from garage the its not refulling full just give with the actual fuel status?

hasty martenBOT
#

Please read the docs https://docs.lixeirocharmoso.com/ it contains important information on installation, common issues and frequently asked questions regarding the configuration of our scripts

clear root
#

exports["lc_fuel"]:SetFuel(vehicle, fuel) got it

clear root
#

When i set like this to the garage script.

And in lc_fuel config. I have some cars with diesel config. The player takes the car out automaticly get the error that is wrong fuel is in the car. ( car spawner garage type like job garage) There is any ideea to fix?

#

we use Jg advanced garage

whole forum
whole forum
clear root
#

I saw just with spawner Garage. I removed the lc fuel till tomorrow and I’ll check once again. Thank you for the link I check asap

whole forum
clear root
#

im think he dont get the fuel type nur the fuel quantity

ashen thunder
#

Is this issue only with jg garages or is it happening with someone else?

whole forum
ashen thunder
#

Got it, thanks Ash

zealous kindle
whole forum
#

or the database sorry

#

both technically I guess

ashen thunder
#

The script has his own table for fuel type, so no extra changes are required in the garages

odd wasp
#

function Framework.Client.VehicleSetFuel(vehicle, fuel)
if not DoesEntityExist(vehicle) then return false end

if (Config.FuelSystem == "LegacyFuel" or Config.FuelSystem == "ps-fuel" or Config.FuelSystem == "lj-fuel" or Config.FuelSystem == "cdn-fuel" or Config.FuelSystem == "hyon_gas_station" or Config.FuelSystem == "okokGasStation" or Config.FuelSystem == "nd_fuel" or Config.FuelSystem == "myFuel" or Config.FuelSystem == "Renewed-Fuel") then
exports[Config.FuelSystem]:SetFuel(vehicle, fuel)
elseif Config.FuelSystem == "ti_fuel" then
local fuelType = lib.callback.await("jg-advancedgarages:server:get-ti-fuel-type", false, Framework.Client.GetPlate(vehicle))
exports["ti_fuel"]:setFuel(vehicle, fuel, fuelType or nil)
elseif Config.FuelSystem == "ox_fuel" then
Entity(vehicle).state.fuel = fuel
elseif Config.FuelSystem == "rcore_fuel" then
exports.rcore_fuel:SetVehicleFuel(vehicle, fuel)
elseif Config.FuelSystem == "lc_fuel" then -- Az lc_fuel integrálása
exports["lc_fuel"]:SetFuel(vehicle, fuel) -- Az üzemanyagszint beállítása az lc_fuel exportálásával
else
-- Custom üzemanyag rendszer beállítása itt
end
end

#

jg garage export. cl-functions.lua !

woeful notch