qbcore-framework / qb-adminmenu

Admin Menu Using MenuV
GNU General Public License v3.0
43 stars 247 forks source link

Fix: Show correct names above players head #218

Closed v42-Josh closed 7 months ago

v42-Josh commented 10 months ago

Describe Pull request Show names are showing other names above people's head, this is an small bug.

If the player is too far away to get the server id it returns -1. If you use -1 on getplayerped then it returns your ped, that is changing your name and ID to show someone else's. With one simple line we can fix it,

Questions (please complete the following information):

GhzGarage commented 10 months ago

What did you change? Can't tell

v42-Josh commented 10 months ago

Added the line if playeridx ~= -1 then on line 41.

If the player is too far away to get the server id it returns -1. If you use -1 on getplayerped then it returns your own ped.

github-actions[bot] commented 8 months ago

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