hasItemAmount

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

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

Last updated

Was this helpful?