- Katılım
- 2 yıl 7 ay 22 gün
- Mesajlar
- 116
Freeroam sunucumda oyunculardan biraz uzaklaştığımda blip kayboluyor ,scriptin içine baktım ama mesafe ayarı falan yok ,işin tuhaf tarafı admin menüden de blipleri açtığımda aynı mesafede kayboluyor sanki farklı bir script bunu engelliyor gibi daha önce bu sorunu yaşayan çözen oldu mu ?
PlayerBlips kodları
function GetPlayers()
local players = {}
for i = 0, 32 do
if NetworkIsPlayerActive(1) then
table.insert(players, 1)
end
end
return players
end
Citizen.CreateThread(function()
local blips = {}
local currentPlayer = PlayerId()
while true do
Wait(1000)
local players = GetPlayers()
for _, player in ipairs(GetActivePlayers()) do
if player ~= currentPlayer and NetworkIsPlayerActive(player) then
local playerPed = GetPlayerPed(player)
local playerName = GetPlayerName(player)
RemoveBlip(blips[player])
local new_blip = AddBlipForEntity(playerPed)
SetBlipNameToPlayerName(new_blip, player)
SetBlipColour(new_blip, 0)
SetBlipCategory(new_blip, 0)
SetBlipScale(new_blip, 0.85)
blips[player] = new_blip
end
end
end
end)
PlayerBlips kodları
function GetPlayers()
local players = {}
for i = 0, 32 do
if NetworkIsPlayerActive(1) then
table.insert(players, 1)
end
end
return players
end
Citizen.CreateThread(function()
local blips = {}
local currentPlayer = PlayerId()
while true do
Wait(1000)
local players = GetPlayers()
for _, player in ipairs(GetActivePlayers()) do
if player ~= currentPlayer and NetworkIsPlayerActive(player) then
local playerPed = GetPlayerPed(player)
local playerName = GetPlayerName(player)
RemoveBlip(blips[player])
local new_blip = AddBlipForEntity(playerPed)
SetBlipNameToPlayerName(new_blip, player)
SetBlipColour(new_blip, 0)
SetBlipCategory(new_blip, 0)
SetBlipScale(new_blip, 0.85)
blips[player] = new_blip
end
end
end
end)