1
0
Fork 0
forked from Simnation/Main

Update stored.lua

This commit is contained in:
Miho931 2025-06-08 19:18:00 +02:00
parent fc0a0d7f12
commit ed7aba5953

View file

@ -18,14 +18,36 @@ AddEventHandler('mh_garage:storeVehicle', function(zone)
icon = "car",
onSelect = function()
if zone.price == nil then
StoredVehicle(vehicles[i], zone)
else
lib.alertDialog({
header = "Parkplatz kosten",
content = "Parkplatkosten pro Fahrzeug: "..zone.price.."\n\nWillst du das Parkplatz trotzdem Einparken?",
centered = true,
cancel = true
lib.hideContext("StoredVehicles")
lib registerContext({
id = "thisVehicle",
title = random.name,
options = {
{title = "Kosten: "..zone.price},
{title = ""},
{
title = "Akzeptieren",
description = "Geld wird vom Bankkonto abgebucht!",
onSelect = function()
lib.hideContext("thisVehicle")
StoredVehicle(vehicles[i], zone)
end
},
{
title = "Abbrechen",
description = "Das ist sehr Schade,",
icon = "close",
onSelect = function()
lib.hideContext("thisVehicle")
end
}
}
})
lib.showContext("thisVehicle")
end
end
})