GetActivePlayers returns a list of ints(player sources). Not player objects You can try to cast them to a player like this Player player = new Player(source). However dont know if this works on the client side.