fixed wrong type

This commit is contained in:
Jonas Suter
2022-06-18 09:51:36 +02:00
committed by GitHub
parent bb555091ca
commit f9161afe1a
+1 -1
View File
@@ -662,7 +662,7 @@ function QBCore.Functions.SetVehicleProperties(vehicle, props)
if props.doorStatus then
for doorIndex, breakDoor in pairs(props.doorStatus) do
if breakDoor then
SetVehicleDoorBroken(vehicle, doorIndex, true)
SetVehicleDoorBroken(vehicle, tonumber(doorIndex), true)
end
end
end