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