mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-16 17:48:33 +00:00
fix(vehicleProperties): store correct extra values
This commit is contained in:
1 parent
d52d5adac2
commit
6fb57eff49
1 file changed
+2
-3
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user