Jump to content

Original Scoreboard


Swiffty

Recommended Posts

Adding a new column to the default scoreboard is really easy actually, you can take a look at this page: https://wiki.multitheftauto.com/wiki/Resource:Dxscoreboard

Example:

call ( getResourceFromName( "scoreboard" ), "scoreboardAddColumn", "elementDataName", 70, "Your Column Name")
-- elementDataName -> the name of the elementData you will use, eg. if you already have something like player:aliveTime, you add that string here, this will not be visible on the scoreboard
-- 70 -> width of the column
-- "Your Column Name" -> the name of the column that will be shown on the scoreboard

for k, v in ipairs(getElementsByType("player")) do
  setElementData(v, "elementDataName", math.random(1,50)) -- make sure players actually have the same elementData as you set in the column
end

 

Edited by pa3ck
Link to comment

Name | FPS | Status | Murders | Zombie Kills | Hours | Group | Country |

[FH Staff Members] (0 Players)

Players (0 Players)

Ps. At Status colum make it if you can when someone is onduty to show his rank name. Also i will give you picture from one server to can see what i mean

Pic: WOKQM8N.png

@NOONE

 

Edited by Swiffty
Link to comment

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.
×
×
  • Create New...