From e2212140b7408e5a79b0d6591e0389d30855b188 Mon Sep 17 00:00:00 2001 From: Miho931 <98314142+Miho931@users.noreply.github.com> Date: Sun, 8 Jun 2025 18:00:11 +0200 Subject: [PATCH] Update stored.lua --- resources/[carscripts]/mh_garage/client/stored.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/[carscripts]/mh_garage/client/stored.lua b/resources/[carscripts]/mh_garage/client/stored.lua index 75cf6123c..8732a8576 100644 --- a/resources/[carscripts]/mh_garage/client/stored.lua +++ b/resources/[carscripts]/mh_garage/client/stored.lua @@ -7,14 +7,14 @@ AddEventHandler('mh_garage:storeVehicle', function(zone) local randomname, randomdes = SelectName() local opt = {} - +print("1") for i = 1, #vehicles, 1 do local veh_coords = GetEntityCoords(vehicles[1]) local distance = #(veh_coords - coords) - +print("2") if distance < 40.0 then local mods = QBCore.Functions.GetVehicleProperties(vehicles[i]) - +print("3") table.insert(opt, { title = "Kennzeichen: "..mods.plate, description = "Soll dieses Fahrzeug eingeparkt werden?", @@ -35,14 +35,14 @@ AddEventHandler('mh_garage:storeVehicle', function(zone) end end }) - +print("4") lib.registerContext({ id = "StoredVehicles", title = randomname, description = randomdes, options = opt }) - +print("5") lib.showContext("StoredVehicles") end end