forked from Simnation/Main
Update stored.lua
This commit is contained in:
parent
fc0a0d7f12
commit
ed7aba5953
1 changed files with 28 additions and 6 deletions
|
@ -18,14 +18,36 @@ AddEventHandler('mh_garage:storeVehicle', function(zone)
|
||||||
icon = "car",
|
icon = "car",
|
||||||
onSelect = function()
|
onSelect = function()
|
||||||
if zone.price == nil then
|
if zone.price == nil then
|
||||||
|
StoredVehicle(vehicles[i], zone)
|
||||||
else
|
else
|
||||||
lib.alertDialog({
|
lib.hideContext("StoredVehicles")
|
||||||
header = "Parkplatz kosten",
|
|
||||||
content = "Parkplatkosten pro Fahrzeug: "..zone.price.."\n\nWillst du das Parkplatz trotzdem Einparken?",
|
lib registerContext({
|
||||||
centered = true,
|
id = "thisVehicle",
|
||||||
cancel = true
|
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
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue