forked from Simnation/Main
Update stored.lua
This commit is contained in:
parent
f9dd3018c7
commit
36fdc79aad
1 changed files with 3 additions and 0 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue