LOL that would be Metagaming
hello is there any way that instead of the id show the last 5 digits of the steam id?
I change distance up at the top and it disappears completely is there limits for it this is what i tried to set it to -
local disPlayerNames = 10
how do I make this to just show ID? its showing ID, name and a symbol when they talk. I just want IDs. any help would be great, thank you.
how i can do to show the names and not the id or to show vrp id?
Wont work, I need help how do I make it work? please help me
could this be modified so just EMS see ID using ESX ambulance job? TIA
dejo de existir ?
how to restrict this per job only
it doesn’t need a __resource.lua if have a fxmanifest.lua
fxmanifest.lua
files didn’t exist back when I made that post…
is there a way to remove the circle on the feet? Everything else I like.
can u drop me the link ?
why this doesnt work with MUMBLE VOIP?
How can I make it show my own ID? I removed the if statement “if GetPlayerPed(id) ~= GetPlayerPed(-1) then” but that never worked. Maybe I did something wrong? This is what my file looks like, could somebody told me if I did this incorrectly
disPlayerNames = 5 --distance you see IDs at
keyToToggleIDs = 40 --left alt by default
playerDistances = {}
showIDsAboveHead = false
Citizen.CreateThread(function()
while true do
if IsControlJustPressed(0, keyToToggleIDs) then
showIDsAboveHead = not showIDsAboveHead
print("changed")
Wait(50)
end
Wait(0)
end
end)
Citizen.CreateThread(function()
while true do
for id = 0, 255 do
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))
playerDistances[id] = distance
end
end
Citizen.Wait(1000)
end
end)
Citizen.CreateThread(function()
while true do
if showIDsAboveHead then
for id = 0, 255 do
if NetworkIsPlayerActive(id) then
if (playerDistances[id] < disPlayerNames) then
x2, y2, z2 = table.unpack(GetEntityCoords(GetPlayerPed(id), true))
if NetworkIsPlayerTalking(id) then
DrawText3D(x2, y2, z2+1, GetPlayerServerId(id), 247,124,24)
else
DrawText3D(x2, y2, z2+1, GetPlayerServerId(id), 255,255,255)
end
end
end
end
end
end
Citizen.Wait(0)
end
end)
function DrawText3D(x,y,z, text, r,g,b)
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)
SetTextColour(r, g, b, 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
hey how do i download this it doesnt say code when u go to the it hub link
Any way to do this by doing a chat command for example: /showids then the player ID’s show up for a certain amount of time.
Ay yo could you make that work only for admin somehow