diff --git a/client/functions.lua b/client/functions.lua index 1744593..b3673c1 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -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