Swiffty Posted May 31, 2017 Share Posted May 31, 2017 Hello there can you tell me how i can make the original scoreboard to be with dayz colums like Murders/zombie kills/alivetime/group and etc ... ? Link to comment
pa3ck Posted May 31, 2017 Share Posted May 31, 2017 (edited) 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 May 31, 2017 by pa3ck Link to comment
Swiffty Posted May 31, 2017 Author Share Posted May 31, 2017 and what i must create a new .lua file? or.. ? Link to comment
Amine#TN Posted May 31, 2017 Share Posted May 31, 2017 Just now, Swiffty said: and what i must create a new .lua file? or.. ? yes you can create a new script or you can just add the function in the scorebord file Link to comment
Swiffty Posted May 31, 2017 Author Share Posted May 31, 2017 (edited) oh can u just make one and send it here becus its really hard for me .. Edited May 31, 2017 by Swiffty Link to comment
Amine#TN Posted May 31, 2017 Share Posted May 31, 2017 ok tell wich colum you want to add Link to comment
Swiffty Posted May 31, 2017 Author Share Posted May 31, 2017 (edited) 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: @NOONE Edited May 31, 2017 by Swiffty Link to comment
Hale Posted May 31, 2017 Share Posted May 31, 2017 You shouldn't really be asking for someone to make a script for you in this section, as it is strictly used for guiding and helping people that require assistance. 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now