[Release] esx_scoreboard

Hi,
Same problem. So I deactivated (for the moment) what produced that.

function applyPingColor() {
	$('#playerlist tr').each(function () {
		$(this).find('td:nth-child(3)').each(function () {
			var ping = $(this).html();
			var color = 'green';

			if (ping > 30 && ping < 60) {
				color = 'orange';
			} else if (ping >= 60) {
				color = 'red';
			}

			$(this).css('color', color);
			// $(this).html(ping + " <span style='color:white;'>ms</span>");
			$(this).html(ping);
		});

	});
}

// Todo: not the best code
function updatePing(players) {
	jQuery.each(players, function (i, val) {
		$('#playerlist tr:not(.heading)').each(function () {
			$(this).find('td:nth-child(2):contains(' + val + ')').each(function () {
			// $(this).find('td:nth-child(2):contains(' + val.id + ')').each(function () {
				$(this).parent().find('td').eq(2).html(val.ping);
			});
		});
	});
}

Yea I canā€™t reproduce it all the time, but it does happen when I got friends onā€¦ Donā€™t really know this happens, but sometimes jQuery will only return null here

EDIT: 6ff0de6 might have resolved the issue, please test and report back!

I completely removed the old scoreboard folder, installed this one as default added the uptime and this is what i get still.:

thats because he is wrong, it has to be ā€œesx_scoreboardā€, not ā€œscoreboardā€, its hardcoded in JS, you have to rename resource or fix name of resource in JS

1 Like

Exactly. Sorry for the previous message! Fixed it now, never looked at the code properly, thought it was like the Stadus_Scoreboard code.

@ DayZen
to install it proprely
1 put esx_scoreboard in the folder system.
2 deleted the old scoreboard or suspend it by a #
3 start esx_scoreboard in the last line in .cfg
4 clean your caches and restart the server and enjoy

1 Like

I delete the caches but not change nothingā€¦

1 Like

Name the god damn folder esx_scoreboard and nothing elseā€¦

might need to put it up a little higher cuz when the server is full we donā€™t see the other playerā€™s name

So do it? Its legit one number you need to change lol

How to delete original

@Ruzc
you have two solutions

  1. put # before scoreboard in the file server.cfg
    25458458784584
    and cleared the cache
    the seconde delete it from system and delete the line scoreboard
    555555555555
    and cleared the cache

What do you mean how do you delete original?? What are you doing even trying to put this in if you donā€™t know how to remove a resource?

Go into your server folder and delete scoreboard, or go into your server.cfg and # it out

Or what he said ^ as we posted at the same time lol

yeah :slight_smile:

well i donā€™t know how lolā€¦

in your server.cfg
and you have the way to delete it from system look pictures i canā€™t say more than that.

I have a white color output panel in the first server I want to name or delete it

:nail_care:

2 Likes

I mean that list how to remove it

In your server config, put # in front of scoreboard. Then start esx_scoreboard. Whatā€™s hard?