Skip to content

Commit eb94ca3

Browse files
kutlu35jlillis
andauthored
freeroam: bugfix on fr_client.lua onExitVehicle function (#571)
freeroam: fix on fr_client.lua onExitVehicle function There is no point of putting 'elseif' on that spesific place, it should be 'end if' instead. Co-authored-by: John Lillis <[email protected]>
1 parent e62bc54 commit eb94ca3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

[gameplay]/freeroam/fr_client.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,9 @@ function onExitVehicle(vehicle,seat)
21232123
hideControls(wndMain, 'repair', 'flip', 'upgrades', 'color', 'paintjob', 'lightson', 'lightsoff')
21242124
closeWindow(wndUpgrades)
21252125
closeWindow(wndColor)
2126-
elseif vehicle and seat == 0 then
2126+
end
2127+
2128+
if vehicle and seat == 0 then
21272129
if source and g_PlayerData[source] then
21282130
setVehicleGhost(vehicle,hasDriverGhost(vehicle))
21292131
end

0 commit comments

Comments
 (0)