Update stored.lua

This commit is contained in:
Miho931 2025-06-09 19:42:51 +02:00
parent f9dd3018c7
commit 36fdc79aad

View file

@ -11,6 +11,9 @@ AddEventHandler('mh_garage:storeVehicle', function()
local distance = #(veh_coords - coords) local distance = #(veh_coords - coords)
if distance < 40.0 then if distance < 40.0 then
local mods = QBCore.Functions.GetVehicleProperties(vehicles[i]) local mods = QBCore.Functions.GetVehicleProperties(vehicles[i])
local lc_fuelLevel = exports["lc_fuel"]:GetFuel(vehicles[i]) -- Get the fuel level
mods.fuelLevel = lc_fuelLevel
table.insert(opt, { table.insert(opt, {
title = "Kennzeichen: "..mods.plate, title = "Kennzeichen: "..mods.plate,
description = GetRandomCarDescription(), description = GetRandomCarDescription(),