SuleymanM Posted June 14, 2013 Share Posted June 14, 2013 Hi all, An guy help to me with country ... and succesful add Country flag | Names no function , why? -- show_country.lua exports.scoreboard:addScoreboardColumn('Country') function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Country",":admin/client/images/flags/"..flag..".png") else setElementData(source,"Country",":admin/client/images/flags/za.png") end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) -- Pls help me , idon't know how to proceed. I want country like : ( Flag + Country ) in one collumn My Country : I want like : Link to comment
Baseplate Posted June 14, 2013 Share Posted June 14, 2013 exports.scoreboard:addScoreboardColumn('Country') function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Country",":admin/client/images/flags/"..flag..".png "..flag.."") else setElementData(source,"Country",":admin/client/images/flags/za.png") end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) Link to comment
MTA Team 0xCiBeR Posted June 14, 2013 MTA Team Share Posted June 14, 2013 That wouldnt work @abxf ... Because there you are rendering or image or text...Search the forum, there are various topics about this... Heres one https://forum.multitheftauto.com/viewtopic.php?f=91&t=52867&start=30 Link to comment
SuleymanM Posted June 14, 2013 Author Share Posted June 14, 2013 not function.... empty space... Man , this is other problem .... i want all in one .... ( flags & country -> in one collumn) I do not understand any of those topics 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