Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- blip = {}
- players = {}
- for i=0, playerCount do
- players[i] = {
- name = PLAYER.GET_PLAYER_NAME(i),
- connected = NETWORK.NETWORK_IS_PLAYER_CONNECTED(i),
- playerinfo = PLAYER.GET_PLAYER_PED(i),
- buttonExists = false,
- blips = blip[i],
- }
- if(players[i].connected) then
- playerTracker.init()
- playerTracker.GUI.addButton(players[i].name,playerTracker.SpacerButton,0,0.2,0.04,0.04,titlefont,titlesize,dshadow,alpha,0,221,255,0,221,255)
- if(NETWORK.NETWORK_GET_PLAYER_INDEX(players[i].playerinfo) ~= playerPed) then
- player[i].blips = UI.ADD_BLIP_FOR_ENTITY(players[i].playerinfo)
- end
- else
- UI.REMOVE_BLIP(blip[i])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement