Does anyone have a plug-in for this icon?
Of course thanks, but I can not create and install this plugin.
How to create it, help
Citizen.CreateThread(function()
while true do
Wait( 1 )
-- show blips
for id = 0, 32 do
if NetworkIsPlayerActive( id ) then -- and GetPlayerPed( id ) ~= GetPlayerPed( -1 )
ped = GetPlayerPed( id )
--blip = GetBlipFromEntity( ped )
-- HEAD DISPLAY STUFF --
-- Create head display (this is safe to be spammed)
if GetPlayerPed( id ) ~= GetPlayerPed( -1 ) then
headDisplayId = N_0xbfefe3321a3f5015(ped, ".", false, false, "", false )
else
headDisplayId = N_0xbfefe3321a3f5015(ped, "", false, false, "", false )
end
if (GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(-1)), GetEntityCoords(GetPlayerPed(id))) < 30.0001) and HasEntityClearLosToEntity(GetPlayerPed(-1), GetPlayerPed(id), 17) then
N_0x63bb75abedc1f6a0(headDisplayId, 12, true)
N_0xd48fe545cd46f857(headDisplayId, 12, 255)
else
N_0x63bb75abedc1f6a0(headDisplayId, 0, false)
end
if NetworkIsPlayerTalking(id) then
N_0x63bb75abedc1f6a0(headDisplayId, 12, true) -- Speaker
N_0xd48fe545cd46f857(headDisplayId, 12, 128) -- Alpha
else
N_0x63bb75abedc1f6a0(headDisplayId, 12, false) -- Speaker Off
end
end
end
end
end)
thx man:grinning:
No problem! I love to help out the community in any way I can.
Apologies to jump on the thread, would this be placed within resource with a __resource.lua? Or elsewhere, I tried setting it up but must have butchered it somewhere. Thank you in advance
This would be placed in a client.lua
Then, make a __resource.lua that has this:
client_script "client.lua"
Thank you very much, I’ve done it server side, makes sense now.
Thank you for the help.
How do I prevent this from being displayed to the local player?
You don’t know?
if GetPlayerPed( id ) ~= GetPlayerPed( -1 ) then
headDisplayId = N_0xbfefe3321a3f5015(ped, ".", false, false, "", false )
else
headDisplayId = N_0xbfefe3321a3f5015(ped, "", false, false, "", false )
end
To be replaced by :
if GetPlayerPed( id ) ~= GetPlayerPed( -1 ) then
headDisplayId = N_0xbfefe3321a3f5015(ped, ".", false, false, "", false )
end
Thank you, bro, not the first time you help.
on fx server works?
I did not work not one of your codes. How can I do that? Created two files : client.lua and __resource.lua,put them in the ‘chat’ folder and put it in the resource folder, hooked up the launch server.cfg.
Everything works very well.gamertag.lua (1.1 KB)
__resource.lua (28 Bytes)
do you know how to show id not blips,when player talk will show id else no
sorry my bad english