Resource:Scoreboard

From Multi Theft Auto: Wiki
Revision as of 21:28, 2 June 2007 by Jbeta (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The scoreboard displays connected players, teams, pings and other data in a gridlist for players ingame. It also has a javascript-enabled web interface, so it can be viewed from a browser.

When you add a column to the scoreboard, it's linked to the element data field of the same name, so if you add the "score" column, element data in the field "score" will be shown for all players and teams.

Exported serverside functions

You can call them from another resource using call():

call(getResourceFromName("scoreboard"), "addScoreboardColumn", "wanted level")
addScoreboardColumn( string columnName )
removeScoreboardColumn( string columnName )
setScoreboardForced( player thePlayer, bool forced )

Issues/TODO

  • It can't remove columns yet, due to an issue with gridlist themselves (mantis)
  • Scoreboard data for web listing is being sent all at once, should allow sending of separate chunks