Chaos Posted August 9, 2014 Share Posted August 9, 2014 exports.scoreboard:addScoreboardColumn('Rank') function ranks (killer) local zombiekills = getElementData(killer,"Zombie kills") if (zombiekills == 9) then setElementData(killer,"Rank","ranks/first.png") end end addEvent( "onZombieWasted", true ) addEventHandler( "onZombieWasted", getRootElement(), ranks ) i'm trying to put image in scoreboard but it's doesn't work any help ? Link to comment
Castillo Posted August 9, 2014 Share Posted August 9, 2014 You must edit the scoreboard resource to support images, if you search the forums, there are tons of topics related to this. Link to comment
Chaos Posted August 9, 2014 Author Share Posted August 9, 2014 (edited) well, i downloaded scoreboard in resource page it's also same as my idea but still doesn't work. https://community.multitheftauto.com/in ... ls&id=4019 Edited August 9, 2014 by Guest Link to comment
Castillo Posted August 9, 2014 Share Posted August 9, 2014 But, did you edit the scoreboard script to use your rank column? Link to comment
Chaos Posted August 9, 2014 Author Share Posted August 9, 2014 (edited) i changed only this and got meta: Edited August 9, 2014 by Guest Link to comment
Castillo Posted August 9, 2014 Share Posted August 9, 2014 Try this: setElementData ( killer, "Rank", ":".. getResourceName ( getThisResource ( ) ) .."/ranks/first.png" ) Link to comment
Chaos Posted August 9, 2014 Author Share Posted August 9, 2014 it's worked thanks you are the best but can i change image size ? it's too small Link to comment
Castillo Posted August 9, 2014 Share Posted August 9, 2014 In dxDrawImage: 16 and 11 are the width and height. Link to comment
Chaos Posted August 9, 2014 Author Share Posted August 9, 2014 i changed it but it goes outside of column Link to comment
Castillo Posted August 9, 2014 Share Posted August 9, 2014 Well, you'll have to resize it until it fits correctly. 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