function main()
repeat wait(0) until isSampAvailable()
while true do wait(0)
for _, value in ipairs(getAllChars()) do
if value ~= PLAYER_PED and doesCharExist(value) then
if isCharOnScreen(value) then
local x,y,z = getCharCoordinates(playerPed)
local posX,posY,posZ = getCharCoordinates(value)
local X,Y = convert3DCoordsToScreen(x, y, z)
local _X,_Y = convert3DCoordsToScreen(posX, posY, posZ)
renderDrawLine(X,Y,_X,_Y,2,-1)
end
end
end
end
end