1
0
Fork 0
forked from Simnation/Main

resources/[jobs]/[civ]/mh_jobgarage/client/chiefsettings.lua aktualisiert

This commit is contained in:
Miho 2025-06-24 23:36:02 +02:00
parent 24779ed578
commit cbdc3609b8

View file

@ -48,9 +48,8 @@ function OpenChiefAddVehicleMenu()
for i = 1, #vehicles, 1 do for i = 1, #vehicles, 1 do
local isSpawned, mods = IsVehicleSpawned(vehicles[i].plate) local isSpawned, mods = IsVehicleSpawned(vehicles[i].plate)
while not isSpawned do
Wait(100) if isSpawned then
end
print("Chiefsettings: "..mods) print("Chiefsettings: "..mods)
table.insert(opt, { table.insert(opt, {
@ -89,6 +88,9 @@ function OpenChiefAddVehicleMenu()
}) })
lib.showContext("ChiefAddVehicleMenu") lib.showContext("ChiefAddVehicleMenu")
else
Notification("Schlüsselkasten", "Kein Fahrzeug gefunden!", "warning")
end
end end
else else
Notification("Schlüsselkasten", "Keine Fahrzeuge von dir Gefunden!", "error") Notification("Schlüsselkasten", "Keine Fahrzeuge von dir Gefunden!", "error")