Jump to content

Anyone can help me for this Scoreboard with flag


scary11

Recommended Posts

-- server-side

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

Add this on scoreboard client-side

				elseif column.name == "Country" then
                dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI )

tell me if there is a problem.

  • Like 1
Link to comment
9 hours ago, TorNix~|nR said:

-- server-side

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

Add this on scoreboard client-side


				elseif column.name == "Country" then
                dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI )

tell me if there is a problem.

didn't open can u edit for me if u can : D 

  • Sad 1
Link to comment
  • 2 weeks later...
On 10/11/2017 at 22:53, TorNix~|nR said:

-- server-side

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

Add this on scoreboard client-side


				elseif column.name == "Country" then
                dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI )

tell me if there is a problem.

Create a server-side scritp, then add the Serve-Side

then go to 'scoreboard' resource, then open dxscoreboard_client

after that add the Client-Side on line 724 before this code:

dxDrawImage ( topX+theX, y, itemWidth, itemHeight, content.src, content.rot, content.rotOffX, content.rotOffY, content.color, drawOverGUI )
end

If you got a problem, tell me.

Edited by TorNix~|nR
A little mistake.
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...