1LoL1 Posted December 28, 2015 Share Posted December 28, 2015 Hello, in ScoreBoard it's Ping. And my question is how i can change data color? So i must use guiLabelSetColor? i mean this: Now i have: I need: Link to comment
Noki Posted December 28, 2015 Share Posted December 28, 2015 The scoreboard is drawn with dx. Look in dxscoreboard_client.lua for dxDrawText. There should be an argument in there where you're able to modify the colour (in the form of r, g, b, a). Link to comment
1LoL1 Posted December 28, 2015 Author Share Posted December 28, 2015 The scoreboard is drawn with dx. Look in dxscoreboard_client.lua for dxDrawText. There should be an argument in there where you're able to modify the colour (in the form of r, g, b, a). I don't understand what do you mean. Link to comment
AMARANT Posted December 28, 2015 Share Posted December 28, 2015 He says that you should look up in the dxscoreboard_client.lua file from the 'dxscoreboard' resource dxDrawText functions which have arguments that can change string colors. Link to comment
Noki Posted December 29, 2015 Share Posted December 29, 2015 Alright, I had a proper look through the resource. In dxscoreboard_clientsettings.lua, there is a table that contains all the defaults (called defaultSettings). The last index of that table is called 'content_color'. In there, there is another table which contains the default colours for the scoreboard's content (the colour of the text in the columns that aren't the name column). You can change the rgba values there and they will be the default colours. Line 78 to line 82. (https://github.com/multitheftauto/mtasa ... ttings.lua) Though remember a lot of servers use dxscoreboard and a lot of the time, the client settings are carried across servers (mine has no animation, for example). So not all players will see it as green 100% of the time unless you rename your scoreboard resource to something unique. Link to comment
Evan_Arianenda Posted January 1, 2016 Share Posted January 1, 2016 Change r,g,b,a value Link to comment
1LoL1 Posted January 1, 2016 Author Share Posted January 1, 2016 Change r,g,b,a value It changed and doesn't work. Link to comment
Noki Posted January 1, 2016 Share Posted January 1, 2016 1LoL1, read my response and tell me if it works for you. Link to comment
1LoL1 Posted January 2, 2016 Author Share Posted January 2, 2016 1LoL1, read my response and tell me if it works for you. It's changed and not work. Link to comment
Addlibs Posted January 2, 2016 Share Posted January 2, 2016 You're editing the default settings - if you delete your local scoreboard files it'll most probably work. The problem is that scoreboard allows you to edit your settings, so your client settings override the default settings. Link to comment
1LoL1 Posted January 2, 2016 Author Share Posted January 2, 2016 You're editing the default settings - if you delete your local scoreboard files it'll most probably work. The problem is that scoreboard allows you to edit your settings, so your client settings override the default settings. So what i must edit when i want green "Name" or "Ping" ? 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