From f9161afe1a1ae38f23dbe490199642755c410b26 Mon Sep 17 00:00:00 2001 From: Jonas Suter Date: Sat, 18 Jun 2022 09:51:36 +0200 Subject: [PATCH] fixed wrong type --- client/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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