mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(vehicleProperties): store correct extra values
This commit is contained in:
@@ -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