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

GetInventory

Matias Salas edited this page Dec 26, 2020 · 3 revisions

Server-Side

Player.GetInventory()

This function gets player inventory.

Example

local _Player = Player(source)
local Inventory = _Player.GetInventory()
for i in pairs(Inventory) do
    print(i, Inventory[i]) -- Returns a table key-value of the player inventory
end