Wei Posted March 7, 2012 Share 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) Link to comment
GanJaRuleZ Posted March 7, 2012 Share 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 Link to comment
Kenix Posted March 7, 2012 Share 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. Link to comment
Wei Posted March 7, 2012 Author Share Posted March 7, 2012 Thank you both. I've got idea from cit. It looked cool Link to comment
Kenix Posted March 7, 2012 Share Posted March 7, 2012 No problem. I've got idea from cit. It looked cool If you want, ok. 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