fix(vehicleProperties): store correct extra values

This commit is contained in:
Linden
2022-05-14 17:14:49 +10:00
parent d52d5adac2
commit 6fb57eff49

View File

@@ -24,10 +24,9 @@ function lib.getVehicleProperties(vehicle)
local extras = {}
for i = 0, 12 do
for i = 1, 15 do
if DoesExtraExist(vehicle, i) then
-- [0=on, 1=off]
extras[i] = IsVehicleExtraTurnedOn(vehicle, i)
extras[i] = IsVehicleExtraTurnedOn(vehicle, i) and 0 or 1
end
end