mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
fixed wrong type
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user