Chaos Posted August 9, 2014 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 ?
Castillo Posted August 9, 2014 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.
Chaos Posted August 9, 2014 Author 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
Castillo Posted August 9, 2014 Posted August 9, 2014 But, did you edit the scoreboard script to use your rank column?
Chaos Posted August 9, 2014 Author Posted August 9, 2014 (edited) i changed only this and got meta: Edited August 9, 2014 by Guest
Castillo Posted August 9, 2014 Posted August 9, 2014 Try this: setElementData ( killer, "Rank", ":".. getResourceName ( getThisResource ( ) ) .."/ranks/first.png" )
Chaos Posted August 9, 2014 Author Posted August 9, 2014 it's worked thanks you are the best but can i change image size ? it's too small
Castillo Posted August 9, 2014 Posted August 9, 2014 In dxDrawImage: 16 and 11 are the width and height.
Castillo Posted August 9, 2014 Posted August 9, 2014 Well, you'll have to resize it until it fits correctly.
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