javad_iran

[Help Me] Script Show Online Players

Recommended Posts

Hi.

please send example script for show online players.

server side Or client side Does not matter

sorry for bad english

 

Share this post


Link to post
Share on other sites

Example, command for share server players

mp.events.addCommand('players', (player) => {
	let count = 1;
	player.outputChatBox(`Players online: ${mp.players.length}`);

	mp.players.forEach(player0 => {
		player.outputChatBox(`#${count}: ${player0.name}(${player0.id})`);
		count++;
	});
});

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.