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