Skip to content

Commit

Permalink
refactor(client/defaults): disable interacting with vehicle doors if …
Browse files Browse the repository at this point in the history
…using a vehicle (#156)
  • Loading branch information
SeaLife authored Aug 14, 2024
1 parent 0a0e51a commit ca1583e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ca1583e

Please sign in to comment.