Jump to content

[HELP] Color


1LoL1

Recommended Posts

Posted

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:

oLdPnG.png

I need:

OASOGIAOG.png

Posted

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

Posted
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. :(

Posted

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.

Posted

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.

Posted

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.

Posted
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" ?

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