Wei Posted March 7, 2012 Posted March 7, 2012 hi. I have problem that doesn't show money on it. here is my lua: exports.scoreboard:addScoreboardColumn('Money') function showMoney () local money = call(getResourceFromName("admin"), "getPlayerMoney", source) setElementData(source,"Money",money) end addEventHandler("onPlayerJoin",getRootElement(),showMoney) Diet with russian vodka, lose 3 days in one week !
GanJaRuleZ Posted March 7, 2012 Posted March 7, 2012 exports.scoreboard:addScoreboardColumn('Money') function showMoney () local money = getPlayerMoney ( source ) setElementData(source,"Money",money) end addEventHandler("onPlayerJoin",getRootElement(),showMoney) SERVER-SIDE My Projects! No one.
Kenix Posted March 7, 2012 Posted March 7, 2012 exports.scoreboard:addScoreboardColumn('Money') function fMoneyShow ( ) setElementData( source,"Money",getPlayerMoney( source ) ) end addEventHandler( 'onPlayerJoin', root, fMoneyShow ) But idk why you need check money if player join. He always have 0. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Wei Posted March 7, 2012 Author Posted March 7, 2012 Thank you both. I've got idea from cit. It looked cool Diet with russian vodka, lose 3 days in one week !
Kenix Posted March 7, 2012 Posted March 7, 2012 No problem. I've got idea from cit. It looked cool If you want, ok. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
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