So my server has a good player base. When I go to cuff somone or drag someone I have to look at the huge 32 player list. Is there a script that on the top of there head instead of it saying there name it’ll say there ID? If there is a script for that please link it. Thanks.
what framework are you using ?
If you mean am I using FX or CitMP. I’m using CitMP.
im talking about like es_freeroam? or like fs_ or what
I’m using essentialmode.
well in any case i can send u my file it works like the ID name and then the accual name if thats what ur looking for
Sure, you want to use Megasync or?
r u using async or sql?
I’m using MySQL…
ok let me check what i have for that
Ok, I’m doing something right now anyway. So take your time.
have u tried the async its alot better ?
Nope. What is different?
https://drive.google.com/open?id=0BwNu6rid28l4WXItYTViMkVJd28
this es_admin should give you what u need except you gotta change ur settings from async to sql
Ok, I’m not good with coding and stuff. But I’ll let me know if I run in to trouble. Anyways thanks.
no problem man it should work with no issues
You might be able to take @MrDaGree’s player names script and turn it into something like this:
Note: this has not been tested
-- Script Created By: MrDaGree
-- If you wish to use this, dont claim it as your own.
-- This is a client.lua script. This must be ran BY the client.
local showPlayerBlips = false
local ignorePlayerNameDistance = false
local disPlayerNames = 15
local playerSource = 0
function DrawText3D(x,y,z, text) -- some useful function, use it if you want!
local onScreen,_x,_y=World3dToScreen2d(x,y,z)
local px,py,pz=table.unpack(GetGameplayCamCoords())
local dist = GetDistanceBetweenCoords(px,py,pz, x,y,z, 1)
local scale = (1/dist)*2
local fov = (1/GetGameplayCamFov())*100
local scale = scale*fov
if onScreen then
SetTextScale(0.0*scale, 0.55*scale)
SetTextFont(0)
SetTextProportional(1)
-- SetTextScale(0.0, 0.55)
SetTextColour(255, 255, 255, 255)
SetTextDropshadow(0, 0, 0, 0, 255)
SetTextEdge(2, 0, 0, 0, 150)
SetTextDropShadow()
SetTextOutline()
SetTextEntry("STRING")
SetTextCentre(1)
AddTextComponentString(text)
DrawText(_x,_y)
end
end
Citizen.CreateThread(function()
while true do
for i=0,99 do
N_0x31698aa80e0223f8(i)
end
for id = 0, 31 do
if ((NetworkIsPlayerActive( id )) and GetPlayerPed( id ) ~= GetPlayerPed( -1 )) then
ped = GetPlayerPed( id )
x1, y1, z1 = table.unpack( GetEntityCoords( GetPlayerPed( -1 ), true ) )
x2, y2, z2 = table.unpack( GetEntityCoords( GetPlayerPed( id ), true ) )
distance = math.floor(GetDistanceBetweenCoords(x1, y1, z1, x2, y2, z2, true))
if(ignorePlayerNameDistance) then
DrawText3D(x2, y2, z2+1, GetPlayerServerId(id))
-- For just the player's source id use this or use the line above for name and source id | DrawText3D(x2, y2, z2+1, GetPlayerServerId(id))
end
if ((distance < disPlayerNames)) then
if not (ignorePlayerNameDistance) then
DrawText3D(x2, y2, z2+1, GetPlayerServerId(id))
-- For just the player's source id use this or use the line above for name and source id | DrawText3D(x2, y2, z2+1, GetPlayerServerId(id))
end
end
end
end
Citizen.Wait(0)
end
end)
Could you test the thing ^^^?
It works. Use it on FX still too.
Unrelated, but why would you choose citmp? If you’re just now making a server, FX would be better than having to worry about the citmp deprecation. If this is an old server though, I’d guess FX wouldn’t be a thing at the time of creation.