This script is based off this script that puts player source IDs above players’ heads.
https://pastebin.com/xxYAjj9T Credits to MrDaGree (He has given me permission)
It is highly unoptimized however, it can spike from ~0.30ms to ~1.20ms.
I have optimized it to ~0.02-0.03ms.
or https://pastebin.com/rc38JH6g
Example:
(Feel free to make PRs)
Enjoy! And lets make FiveM servers less laggy
31 Likes
FAXES
April 19, 2019, 2:05pm
2
You should include a __resource.lua
into the download
Also maybe a direct download for non- GitHub users
Otherwise looking good, by looking at the code
2 Likes
Sure thing, have added __resource.lua and a direct link
3 Likes
Maybe use SetDrawOrigin() instead of World3dToScreen2d() as the one you are using is always a frame behind
1 Like
zee
April 19, 2019, 2:15pm
5
Would you mind if I use this optimisation in my iteration of this code ?
1 Like
schwim
May 15, 2019, 3:02pm
11
Very nice snippet, thanks very much for sharing!
2 Likes
LySoon
May 20, 2019, 4:13am
12
Can we add player names too :?
hichay
May 20, 2019, 5:17am
14
can we add the role play name instead their steam names?
How do you make this show your own id?
can we add the role play name instead their steam names?
This will depend on the framework you are using
How do you make this show your own id?
Just remove this if statement if GetPlayerPed(id) ~= GetPlayerPed(-1) then
hichay
May 20, 2019, 12:55pm
17
i use esx how to do that ?
zee
May 20, 2019, 4:16pm
18
You do the same thing obviously…
is there a way i can have it only show with a hot key toggle on/off?
15 Likes
I second this! Would be nice to show on key command
5 Likes