Update retrieve.lua

This commit is contained in:
Miho931 2025-06-09 19:09:17 +02:00
parent 8042ad195d
commit dd0d60c6af

View file

@ -12,7 +12,7 @@ AddEventHandler('mh_garage:retrieveVehicle', function()
local mods = json.decode(cb[i].mods) local mods = json.decode(cb[i].mods)
table.insert(opt, { table.insert(opt, {
title = cb[i].name, title = cb[i].name,
description = "Kennzeichen: "..cb[i].plate.."\nTankinhalt: "..math.random(mods.fuelLevel, 2).."%", description = "Kennzeichen: "..cb[i].plate.."\nTankinhalt: "..math.round(mods.fuelLevel, 2).."%",
icon = "car", icon = "car",
onSelect = function() onSelect = function()
cb[i].mods = mods cb[i].mods = mods