⚒️
ForgeM
DISCORDLIBRARY
  • 👋Welcome
  • 📃fmLib
    • Introduction
    • Getting Started
    • Reference
      • Modules
        • Callback
          • Client
          • Server
        • Progress
          • Client
        • Console
          • Shared
        • Pin
          • Client
      • Wrappers
        • Client
          • Player
            • isLoggedIn
        • Server
          • Player
            • get
            • addItem
            • addMoney
            • getMoney
            • getIdentifier
            • getJob
            • getGang
            • getItem
            • getItems
            • getFirstName
            • getLastName
            • getFullName
            • hasItemAmount
            • isAdmin
            • notify
            • removeItem
            • removeMoney
Powered by GitBook
On this page
  1. 📃fmLib
  2. Reference
  3. Wrappers
  4. Server
  5. Player

hasItemAmount

Returns true if the player has more or the same amount as the given amount of the item.

PreviousgetFullNameNextisAdmin

Last updated 1 year ago

Was this helpful?

CtrlK

Was this helpful?

p.hasItemAmount(item, amount)
Argument
Type

item

string

amount

number

Example

local p = FM.player.get(1)

if p.hasItemAmount('bread', 10) then
    -- do something
end