Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

CanCarryItem

Matias Salas edited this page Dec 27, 2020 · 2 revisions

Server-Side

Player.CanCarryItem(Item, Count)

This function determine if you can carry an item.

Arguments

Argument Type Optional Default Value Explanation
Item string No - Item name
Count integer No - Item count

Example

local _Player = Player(source)
if _Player.CanCarryItem("item", 1) then
    _Player.AddItem("item", 1)
else
   print("Player can't carry more items")
end