-stolka- Posted September 13, 2014 Posted September 13, 2014 i downloaded this script but it doesn't work... it outputs the string of the directory insted the flag image 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 flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) CAOS RP SKYPE: stolka.caosrp CONNECT to CAOS RP
MIKI785 Posted September 13, 2014 Posted September 13, 2014 Well obviously... Use this instead of the filepath... {type="image", src="Filepath", width=30, height=20} just customize it Lua Scripter Owner of mshost.cz MTA portal.
-stolka- Posted September 13, 2014 Author Posted September 13, 2014 it doesn't work exports.scoreboard:addScoreboardColumn('Country') function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData( source,"Country",{type="image", src="./admin/client/images/flags/"..flag..".png", width=30, height=20} ) else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) CAOS RP SKYPE: stolka.caosrp CONNECT to CAOS RP
MIKI785 Posted September 13, 2014 Posted September 13, 2014 "it doesn't work" isnt good enough... what about debug?? And if you're trying that on local server than it won't work obviously... Lua Scripter Owner of mshost.cz MTA portal.
xeon17 Posted September 13, 2014 Posted September 13, 2014 "it doesn't work" isnt good enough... what about debug??And if you're trying that on local server than it won't work obviously... As far i know the defualt scoreboard dosen't support images. A unique GangWar gamemode waiting for you!Click here for more information.
MIKI785 Posted September 13, 2014 Posted September 13, 2014 "it doesn't work" isnt good enough... what about debug??And if you're trying that on local server than it won't work obviously... As far i know the defualt scoreboard dosen't support images. Then you're wrong... it supports them. https://code.google.com/p/mtasa-resourc ... 1014&r=882 Lua Scripter Owner of mshost.cz MTA portal.
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