Skip to content

Commit 723b03a

Browse files
committed
Fix changing vehicle extra to false not working
Logic switched value to true. Fixed.
1 parent e488cbe commit 723b03a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

shared/main.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ function QBShared.SetDefaultVehicleExtras(vehicle, config)
7777
end
7878

7979
for id, enabled in pairs(config) do
80-
QBShared.ChangeVehicleExtra(vehicle, tonumber(id), type(enabled) == 'boolean' and enabled or true)
80+
if type(enabled) ~= 'boolean' then
81+
enabled = true
82+
end
83+
84+
QBShared.ChangeVehicleExtra(vehicle, tonumber(id), enabled)
8185
end
8286
end
8387

0 commit comments

Comments
 (0)