Jump to content

[Solved]Scoreboard


-RoCk-Alex

Recommended Posts

Posted (edited)

How can i change scoreboard contents fonts and colour (like the Bg color Local player color)

please help .

give me the lines where i can change them please

Edited by Guest
Posted
well go look for color codes... :roll:

man i tried replacing these in dxscoreboard_clientsettings.lua but no effect

    ["selection_color"] = { 
        ["r"] = 82, 
        ["g"] = 103, 
        ["b"] = 188, 
        ["a"] = 170 
    }, 
    ["highlight_color"] = { 
        ["r"] = 255, 
        ["g"] = 255, 
        ["b"] = 255, 
        ["a"] = 50 
    }, 
    ["header_color"] = { 
        ["r"] = 100, 
        ["g"] = 100, 
        ["b"] = 100, 
        ["a"] = 255 
    }, 
    ["team_color"] = { 
        ["r"] = 100, 
        ["g"] = 100, 
        ["b"] = 100, 
        ["a"] = 100 
    }, 
    ["border_color"] = { 
        ["r"] = 100, 
        ["g"] = 100, 
        ["b"] = 100, 
        ["a"] = 50 
    }, 
    ["serverinfo_color"] = { 
        ["r"] = 150, 
        ["g"] = 150, 
        ["b"] = 150, 
        ["a"] = 255 
    }, 
    ["content_color"] = { 
        ["r"] = 255, 
        ["g"] = 255, 
        ["b"] = 255, 
        ["a"] = 255 
    } 
} 
  

please

Posted

not like that in your gamemode open scoreboard with tab and dont remove you hand form tab and pess right mouse the mouse will show to you click on something like near restor defults i forget the name :(

and select what cloro you want and press save and Vola !

you change it :D

Posted (edited)

-- remove color coding from string 
function removeColorCoding (name) 
    return type(name)=="string" and string.gsub(name, "#%x%x%x%x%x%x", "") or name 
end 
  
-- getPlayerName with color coding removed 
local _getPlayerName = getPlayerName 
function getPlayerName(player) 
    if type(player) == "string" then 
        return removeColorCoding(player) 
    end 
    return removeColorCoding (_getPlayerName(player)) 
end 

Lua Tags Bug !

Edited by Guest
Posted
simple example
rootElement = getRootElement() 
  
function removeHEXColor(oldNick,newNick) 
    local name = getPlayerName(source) 
    if newNick then 
        name = newNick 
    end 
    if (string.find(name,"#%x%x%x%x%x%x")) then 
        local name = string.gsub(name,"#%x%x%x%x%x%x","") 
        setPlayerName(source,name) 
        if (newNick) then 
        cancelEvent() 
        end 
    end  
end 
addEventHandler("onPlayerJoin",rootElement,removeHEXColor) 
addEventHandler("onPlayerChangeNick",rootElement,removeHEXColor) 

i think this will replace the whole name

what i just want is to hide the hex codes from scoreboard

Posted

X-SHADOW you don't need a function.

Alex, go to your Admin Panel, click on Resources Tab, select your scoreboard and click "Configs", double click in "Allow color code in names" or something like this and set to true then press Ok and restart scoreboard.

  • Moderators
Posted

Alex, go to your Admin Panel, click on Resources Tab, select your scoreboard and click "Configs", double click in "Allow color code in names" or something like this and set to true then press Ok and restart scoreboard.

lol did not know :D

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