qbcore-framework / qb-doorlock

Doorlock Script For QB-Core
GNU General Public License v3.0
30 stars 196 forks source link

[BUG] Doors being offset for qb-bankrobbery [Legion Square tested] #137

Closed ChristianBDev closed 9 months ago

ChristianBDev commented 1 year ago

Describe the bug The text was in the corner of the door at the legion bank (Red Circle), now it is in the middle of the door depending on the coordinates (Green Circle) once set in the config.lua if using your own or the standard script.

To Reproduce Steps to reproduce the behavior:

  1. Go to qb-doorlock/client/main.lua
  2. Go to line 88
  3. Change 'return GetOffsetFromEntityInWorldCoords(data.object, -dx / 2, 0, 0)' to 'return GetOffsetFromEntityInWorldCoords(data.object, dx / 2, 0, 0)'

Expected behavior I expected to have it show in the middle of the door previously, otherwise you would have to stand in the corner of the door in order for it to be lockpickable

Screenshots issue_1 issue_fixed_1

Questions (please complete the following information):

Additional context Add any other context about the problem here.

github-actions[bot] commented 9 months ago

This issue has had 60 days of inactivity & will close within 7 days