---ServerSide ,
i add a code to delete the blip if the Player Quit so i doesn't cause lag on the server .
player_blips = {}
addEventHandler("onPlayerLogin",root,
function ( )
for _, nMax in ipairs ( getElementsByType ( 'player' )) do
local nAccount = getAccountName(getPlayerAccount(nMax))
if (nAccount) then
if isObjectInACLGroup ( "user." .. nAccount, aclGetGroup ( "Admin" ) ) then
blip1 = createBlip( 1586.1999511719, 1236.4000244141, 9.800000190735, 35, 2, 255, 0, 0, 255, 0, 99999, nMax)
player_blips[source] = blip1
end
end
end
end
)
addEventHandler("onPlayerQuit", root,
function ( )
local blip1 = player_blips[source]
destroyElement(blip1)
player_blips[source] = nil
end
)