Skip to content

Commit

Permalink
Merge pull request #60 from Gellipapa/main
Browse files Browse the repository at this point in the history
🚑 Fix type conversion in garage logic
  • Loading branch information
Gellipapa authored Sep 28, 2024
2 parents 6dab947 + ea57450 commit 60196ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/vehicle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ function OpenVehicleSpawnerMenu(type, hospital, part, partNum)
local vehicleName = GetLabelText(GetDisplayNameFromVehicleModel(props.model))
local label = ('%s - <span style="color:darkgoldenrod;">%s</span>: '):format(vehicleName, props.plate)

if v.stored == 1 then
if v.stored == 1 or v.stored == true then
label = label .. ('<span style="color:green;">%s</span>'):format(TranslateCap('garage_stored'))
elseif v.stored == 0 then
elseif v.stored == 0 or v.stored == false then
label = label .. ('<span style="color:darkred;">%s</span>'):format(TranslateCap('garage_notstored'))
end

Expand Down

0 comments on commit 60196ab

Please sign in to comment.