1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Making a addmoney command?

Discussion in 'DarkRP Modding Questions & Help' started by pvtpuffball, Oct 18, 2013.

  1. pvtpuffball

    pvtpuffball New Member

    I know theres the rp_setmoney command.
    But how would I add money to a wallet?
    Even when the player is offline?
    for example:

    I have 1000 dollars in my wallet I go into console and type rp_addmoney pvt 9000
    then my wallet will update to 10000.

    The rp_setmoney just sets the players money.
    Last edited: Oct 18, 2013
  2. Scottie

    Scottie ~ Ent:King Dev ~ Contributor

    Get yourself a coder.
  3. pvtpuffball

    pvtpuffball New Member

    I didnt realize this was a go spend 20 dollars for a script forum.
    I thought it was a, we'll try to help you forum.
  4. Scottie

    Scottie ~ Ent:King Dev ~ Contributor

    You're not asking for help. You're asking for code. Which is the least of anyones priority here. It's a command you can make in two seconds even without lua knowledge as long as you read the wiki's function page. Use this board for error solving not for using hospitality to upgrade your code. addMoney(activator, amount) is the function. To get you started.
    TypicalRookie likes this.
  5. (FPtje) Atheos

    (FPtje) Atheos Main Developer Staff Member

    It exists, but it's slightly hidden
    to add money:
    rp_setmoney player amount +

    to remove money:
    rp_setmoney player amount -
    Scottie likes this.
  6. pvtpuffball

    pvtpuffball New Member

    I'm setting up my auto donation system and I need it to be able to give people their money while not on the server :p.
  7. computer22

    computer22 Community Staff Staff Member Server Owner

    Use DarkRP with mysql...?

Share This Page