Ant!christ

Anyone can help me for this Scoreboard with flag

Recommended Posts

2 hours ago, arciCZ said:

Send ther source code. If we dont have source then we can edit anything.

as i said i lost

if they know this is nais too and lost toooo..ROGWL7.png

Edited by Ant!christ

Share this post


Link to post
-- 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

Share this post


Link to post
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

Share this post


Link to post
On 12.11.2017 at 17:58, TorNix~|nR said:

What do you mean with didn't open?

i dont know what i do

 

Just now, Ant!christ said:

i dont know what i do

 

so I ask you to help me

  • Confused 1

Share this post


Link to post
12 hours ago, Ant!christ said:

i dont know what i do

 

so I ask you to help me

He literally said what you have to do :?

Add the first code snippet to a server lua file and the 2nd one to scoreboard's client-side file.

  • Haha 1

Share this post


Link to post
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.

Share this post


Link to post

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.