Can someone share a code where people need to press a key to show a id?
I would REALLY love this! Just what I am looking for!
someone have a idea how i can make that you can see your own id? above your head
Is there a way to have this, but the ID’s only show when I long press a key ( for example F10 ) it only shows if I long press F10 and disappears if I let go of it.
Yes it is possible.
The ID above the head is written in the order of access. How do I change it?
I can’t see the ID… I’ve been trying for 1 entire hour and seeing the code, but I can’t see why is not working…
how can do to flash the ID when the player talking. using ts3 voice system (■■■■■■■■)
its still working??
Yes. It is still working.
Does anybody know how to change script to only show ID when dead/ragdoll please?
Where do I put that in? Sorry a bit new to deving.
It says the link is invalid. Can you send a new one
Link not working!
Did you solve ? i have same problme
Download ?
The download link is wrong, please change it, thank you
- For anyone who is wanting something like this, this is what I do for my players. In an client do this:
local disPlayerNames = 5
local playerDistances = {}
local showID = true
local 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 = #(vector3(px,py,pz)-vector3(x,y,z))
local scale = (1/dist)*2
local fov = (1/GetGameplayCamFov())*100
local scale = scale*fov
if onScreen then
if not useCustomScale then
SetTextScale(0.0*scale, 0.55*scale)
else
SetTextScale(0.0*scale, customScale)
end
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
Citizen.CreateThread(function()
Wait(500)
while true do
Citizen.Wait(0)
if showID then
for _, id in ipairs(GetActivePlayers()) do
if GetPlayerPed(id) ~= GetPlayerPed(-1) then
if playerDistances[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), 65,65,65)
else
DrawText3D(x2, y2, z2+1, GetPlayerServerId(id), 255,255,255)
end
elseif (playerDistances[id] < 25) then
x2, y2, z2 = table.unpack(GetEntityCoords(GetPlayerPed(id), true))
if NetworkIsPlayerTalking(id) then
end
end
end
end
end
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(1000)
if showID then
for _, id in ipairs(GetActivePlayers()) do
if GetPlayerPed(id) ~= GetPlayerPed(-1) then
x1, y1, z1 = table.unpack(GetEntityCoords(GetPlayerPed(-1), true))
x2, y2, z2 = table.unpack(GetEntityCoords(GetPlayerPed(id), true))
distance = math.floor(#(vector3(x1, y1, z1)-vector3(x2, y2, z2)))
playerDistances[id] = distance
end
end
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlJustReleased(0, Keys["F9"]) then ----- WHAT KEY ARE WE GOING TO USE FOR THIS FUNCTION?
showID = not showID
PlaySound(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", 0, 0, 1)
if showID then
exports['mythic_notify']:SendAlert('inform', 'GOV IDS ON', 2500, { ['background-color'] = '#29a30d', ['color'] = '#ffffff' })
else exports['mythic_notify']:SendAlert('inform', 'GOV IDS OFF', 2500, { ['background-color'] = '#ff0000', ['color'] = '#ffffff' })
end
end
end
end)
- add that to any client side script you have, hit F9 should do everything else for you. Does utilize mythic notify so you will need that if you do not already use it! Enjoy!
the download link is down, anyone have a version?