Skip to content

Commit

Permalink
fix(client): don't turn ped during trunk check (#1686)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamzky committed May 9, 2024
1 parent 2c63cc0 commit b9ae19c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modules/inventory/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ function Inventory.CanAccessTrunk(entity)
offset = GetOffsetFromEntityInWorldCoords(entity, offset.x, offset.y, offset.z)

if #(GetEntityCoords(cache.ped) - offset) < 1.5 then
local coords = GetEntityCoords(entity)

TaskTurnPedToFaceCoord(cache.ped, coords.x, coords.y, coords.z, 0)

return doorId
end
end
Expand Down

0 comments on commit b9ae19c

Please sign in to comment.