Change where you set the flag to this:
exports.scoreboard:addScoreboardColumn ( 'Home' )
function showcountry ( )
local flag = exports.admin:getPlayerCountry ( source ) or "N/A"
if ( flag ) then
setElementData ( source, "Home", { ":admin/client/images/flags/".. flag ..".png", flag } )
end
end
addEventHandler ( "onPlayerJoin", root, showcountry )
And on scoreboard:
elseif column.name == "Home" then
dxDrawImage( topX+theX, y+s(1), 16, 11, content [ 1 ], 0, 0, 0, cWhite, drawOverGUI )
dxDrawText ( tostring ( content [ 2 ] ), topX+theX + 5, y+s(1), 16, 11, cWhite, 1, "default", "right", "bottom", true, false, drawOverGUI )