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.

Check for specific amount of money

Discussion in 'DarkRP Modding Questions & Help' started by [TS] mrbell11, Mar 4, 2017.

  1. [TS] mrbell11

    [TS] mrbell11 Member

    I am working on an npc that takes money away from a player, though I have run into the problem where players if they have less money than what it costs they will just go negative. I was wondering if there was a check command to see if a player has $1000 or more.

    EDIT: This can be ignored I found out what I was looking for

    For anyone in need it is

    Code (Text):
        if ply:canAfford()
    Last edited: Mar 4, 2017
  2. Sir Klutch

    Sir Klutch Active Member

Share This Page