#LC Fuel JG advanced garage
23 messages · Page 1 of 1 (latest)
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
exports["lc_fuel"]:SetFuel(vehicle, fuel) got it
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
@clear root i dunno if you saw it in time but in JG discord i posted a snippet here early this morning if anyone else needs it: https://discord.com/channels/842434410154688533/1346059488330907678
(if anyone cant view this that means you dont have customer roles in JG discord, please claim your roles there in a ticket)
is this happening with only spawner garages or normal garages or owned garages as well?
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
gotcha! i did some testing but i didnt yet get the chance to try spawner vehicles with diesel fuel type
where the problem was . If i spawn /car the diesel car its works without any problem. Just if the garage spawns the car its problem .
im think he dont get the fuel type nur the fuel quantity
Is this issue only with jg garages or is it happening with someone else?
it could be a misconfiguration on his part as in JG he showed that its not showing his fuel level in the garage ui but it does for me, i need to test diesel and electric still tho just to double check
Got it, thanks Ash
Also make sure the garage is saving the different fuel types. It may revert back to default fuel when you take it out. If so, JG would need to add support like he did with Tebit Fuel.
not wrong but doesn't it just work thru the config options? since there's nothing in the export for fuel types ect?
or the database sorry
both technically I guess
The script has his own table for fuel type, so no extra changes are required in the garages
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 !
koszonom
this didnt seem to work for me