xeon17 Posted August 26, 2014 Share Posted August 26, 2014 Hello there , i wanna add flags of players on scoreboard but problem is the image flag dosen't show. This is my code of flag: 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) Link to comment
manawydan Posted August 26, 2014 Share Posted August 26, 2014 can show the client side? Link to comment
xXMADEXx Posted August 26, 2014 Share Posted August 26, 2014 can show the client side? There isn't a client side for this part. You need to go into scoreboard/dxscoreboard_client.lua and add another "elseif ( column.name = ... ) then .... end" Link to comment
xeon17 Posted August 26, 2014 Author Share Posted August 26, 2014 Thanks i'll try it , i think it's better i ask here and no create new topic. the problem is friendly fire , i tried all possible but i can't turn friendlyfire on for teams. addEventHandler("onResourceStart", getRootElement(), function () setTeamFriendlyFire ( BallasTeam, true ) setTeamFriendlyFire ( MafiaTeam, true ) setTeamFriendlyFire ( TriadTeam, true ) setTeamFriendlyFire ( AztecasTeam, true ) setTeamFriendlyFire ( VagosTeam, true ) setTeamFriendlyFire ( GROVETeam, true ) setTeamFriendlyFire ( PoliciaTeam, true ) end) and i tried the code in wiki example , is the function bugged or? Link to comment
manawydan Posted August 26, 2014 Share Posted August 26, 2014 ok, sorry now i understand. Link to comment
xeon17 Posted August 26, 2014 Author Share Posted August 26, 2014 All time i trought it need to be true @_@ Thanks man 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