[Release] esx_scoreboard


#21

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);
			});
		});
	});
}

#22

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!


#23

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


#24

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


#25

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


#26

@ 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


#27

I delete the caches but not change nothing…


#28

Name the god damn folder esx_scoreboard and nothing else…


#29

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


#30

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


#31

How to delete original


#32

@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

#33

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


#34

yeah :slight_smile:


#35

well i don’t know how lol…


#36

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


#37

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


#38

:nail_care:


#39

I mean that list how to remove it


#40

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