Reflex# Posted March 8, 2012 Share Posted March 8, 2012 exports.scoreboard:addScoreboardColumn('Home') function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) What's wrong? In Home coulmn show not flags,only words: :admin/client/images/flags Link to comment
X-SHADOW Posted March 8, 2012 Share Posted March 8, 2012 download the last admin panel Link to comment
TAPL Posted March 8, 2012 Share Posted March 8, 2012 you must edit Scoreboard to make the image showing put this in file "dxscoreboard_client.lua" line 704 elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) else Link to comment
Reflex# Posted March 8, 2012 Author Share Posted March 8, 2012 you must edit Scoreboard to make the image showingput this in file "dxscoreboard_client.lua" line 704 elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) else I enter this file in line 704,but scoreboard not work. Link to comment
TAPL Posted March 8, 2012 Share Posted March 8, 2012 make sure you have the last scoreboard from http://mtasa-resources.googlecode.com/f ... s-r841.zip and then add this in line 704 elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) else if still not working then show your full code. Link to comment
Reflex# Posted March 8, 2012 Author Share Posted March 8, 2012 make sure you have the last scoreboard from http://mtasa-resources.googlecode.com/f ... s-r841.zipand then add this in line 704 elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) else if still not working then show your full code. thank's man,that working 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