Jump to content

Show money on scoreboard


Wei

Recommended Posts

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
  
  
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...