mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 00:01:22 +00:00
Merge pull request #1172 from NickReagan/main
Fix Logic Check on Setting Vehicle Extras
This commit is contained in:
+5
-1
@@ -85,7 +85,11 @@ function QBShared.SetDefaultVehicleExtras(vehicle, config)
|
||||
end
|
||||
|
||||
for id, enabled in pairs(config) do
|
||||
QBShared.ChangeVehicleExtra(vehicle, tonumber(id), type(enabled) == 'boolean' and enabled or true)
|
||||
if type(enabled) ~= 'boolean' then
|
||||
enabled = true
|
||||
end
|
||||
|
||||
QBShared.ChangeVehicleExtra(vehicle, tonumber(id), enabled)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user