diff --git a/client/defaults.lua b/client/defaults.lua index 167f89c..e2dc0a8 100644 --- a/client/defaults.lua +++ b/client/defaults.lua @@ -30,7 +30,7 @@ end ---@param useOffset boolean? ---@return boolean? local function canInteractWithDoor(entity, coords, door, useOffset) - if not GetIsDoorValid(entity, door) or GetVehicleDoorLockStatus(entity) > 1 or IsVehicleDoorDamaged(entity, door) then return end + if not GetIsDoorValid(entity, door) or GetVehicleDoorLockStatus(entity) > 1 or IsVehicleDoorDamaged(entity, door) or cache.vehicle then return end if useOffset then return true end