forked from Simnation/Main
Update stored.lua
This commit is contained in:
parent
5042ae859b
commit
518c39fe65
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue