Jump to content

Help scoreboard


roaddog

Recommended Posts

Hi, again

now Im going to add coloumn in scoreboard. How can I modify the width if I use exports function ?

 exports.scoreboard:addScoreboardColumn('Home') 
      
            function showcountry() 
            local flag = exports.admin:getPlayerCountry ( source ) 
                     if flag then 
                     setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") 
                     else 
                     flag = "N/A"  
                     end 
             end 
     addEventHandler("onPlayerJoin",getRootElement(),showcountry) 

and how can I place the Home column right next to name?

Thank you.

Link to comment

To modify the width, did you read mta wiki?

Note: this is for addScoreboardColumn

name: The column name (also the element data name used to get information from).

forElement: The player to who the column should be added for.

width: Width of the column in pixels.

friendlyName: Friendly name (displayed in the scoreboard) of the column.

priority: The priority slot of the column (1-500). If slot isn't free, the column in that slot will be pushed forward.

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...