mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(vehicleProperties): store correct extra values
This commit is contained in:
@@ -24,10 +24,9 @@ function lib.getVehicleProperties(vehicle)
|
|||||||
|
|
||||||
local extras = {}
|
local extras = {}
|
||||||
|
|
||||||
for i = 0, 12 do
|
for i = 1, 15 do
|
||||||
if DoesExtraExist(vehicle, i) then
|
if DoesExtraExist(vehicle, i) then
|
||||||
-- [0=on, 1=off]
|
extras[i] = IsVehicleExtraTurnedOn(vehicle, i) and 0 or 1
|
||||||
extras[i] = IsVehicleExtraTurnedOn(vehicle, i)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user