Hey,
I was using the player blip function from esx_policejob in my script. It worked very well as I used the code some months ago. Since few weeks the blips disappear for every player that is out of range.
I don’t know why but the other players are not active in the network of the player and can’t get initialized.
This is my code:
if ESX.PlayerData.job and ESX.PlayerData.job.name == ‘polizei’ or ESX.PlayerData.job.name == ‘sheriff’ then
ESX.TriggerServerCallback('esx_society:getOnlinePlayers', function(players)
for i=1, #players, 1 do
if players[i].job.name == 'polizei' or players[i].job.name == 'sheriff' then
local id = GetPlayerFromServerId(players[i].source)
if NetworkIsPlayerActive(id) and GetPlayerPed(id) ~= PlayerPedId() then
ESX.TriggerServerCallback('esx_polizei:GetNameByIdentifier', function(Name)
createBlip(id, players[i].job.name, Name)
end, players[i].identifier)
end
end
end
end)
end
I hope somebody can help!
Edit: The range when the blips disappear is when the other players are out of range for rendering