Update stored.lua

This commit is contained in:
Miho931 2025-06-08 19:23:48 +02:00
parent 5042ae859b
commit 518c39fe65

View file

@ -17,9 +17,7 @@ AddEventHandler('mh_garage:storeVehicle', function(zone)
description = GetRandomCarDescription(),
icon = "car",
onSelect = function()
if zone.price == nil then
StoredVehicle(vehicles[i], zone)
else
if zone.price ~= nil then
lib.hideContext("StoredVehicles")
lib.registerContext({
@ -48,6 +46,8 @@ AddEventHandler('mh_garage:storeVehicle', function(zone)
})
lib.showContext("thisVehicle")
else
StoredVehicle(vehicles[i], zone)
end
end
})