Merge pull request #729 from JonasDev99/patch-1

Fixed wrong type SetVehicleProperties / SetVehicleDoorBroken
This commit is contained in:
Kakarot
2022-06-18 14:02:26 -05:00
committed by GitHub
+1 -1
View File
@@ -685,7 +685,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