RenanPG Posted February 16, 2014 Share Posted February 16, 2014 I want to put Coutry and Flag on the same column of the scoreboard, below the code, i tested, but it wasn't worked and stayed in blank. exports.scoreboard:addScoreboardColumn('Home', getRootElement(), 1, 0.024) function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") else setElementData(source,"Home",":admin/client/images/flags/eu.png") end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) exports.scoreboard:addScoreboardColumn('Country', getRootElement(), 2, 0.024) function showcountry() local pais = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Country", "..pais..") else pais = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) and how can i put the name column in blank (with no name)? Link to comment
Moderators Citizen Posted February 16, 2014 Moderators Share Posted February 16, 2014 why there are two times the same function ? (showcountry) The first one looks better, but I don't know if you can set images (maybe it is supporte, I hope) 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