Skip to content

Commit

Permalink
Fix vehicle tabbing setting
Browse files Browse the repository at this point in the history
  • Loading branch information
schliesser committed Dec 9, 2021
1 parent f088885 commit 3edea46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/AtbOverrides.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ end
-- check if vehicle switching is allowed
function AtbOverrides:onSwitchVehicle(_, _, directionValue)
if not self.isPlayerFrozen and self.isRunning then
if not g_adminToolBox.settings:getValue(AtbSettings.SETTING.VEHICLE_TABBING) then
if g_adminToolBox.settings:getValue(AtbSettings.SETTING.VEHICLE_TABBING) then
self:toggleVehicle(directionValue)
end
end
Expand Down

0 comments on commit 3edea46

Please sign in to comment.