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(),
|
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
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue