fixed for spawning unlimited job vehicles

This commit is contained in:
Taavi
2022-11-18 17:58:55 +08:00
committed by GitHub
parent 883e266a9b
commit 619ce76024
@@ -59,9 +59,9 @@ function OpenVehicleSpawnerMenu(type, station, part, partNum)
local vehicleName = GetLabelText(GetDisplayNameFromVehicleModel(props.model))
local label = ('%s - <span style="color:darkgoldenrod;">%s</span>: '):format(vehicleName, props.plate)
if v.stored then
if v.stored == 1 then
label = label .. ('<span style="color:green;">%s</span>'):format(TranslateCap('garage_stored'))
else
elseif v.stored == 0 then
label = label .. ('<span style="color:darkred;">%s</span>'):format(TranslateCap('garage_notstored'))
end
@@ -82,7 +82,7 @@ function OpenVehicleSpawnerMenu(type, station, part, partNum)
align = 'top-left',
elements = garage
}, function(data2, menu2)
if data2.current.stored then
if data2.current.stored == 1 then
local foundSpawn, spawnPoint = GetAvailableVehicleSpawnPoint(station, part, partNum)
if foundSpawn then