Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 424 Bytes

ginv.md

File metadata and controls

28 lines (19 loc) · 424 Bytes

LocalPlayer.GetInventory

local player = LocalPlayer.GetId();
local inventory = LocalPlayer.GetInventory();

if inventory then
	local items = EntityGetAllChildren(inventory);
	
	if items then
		for i, item in ipairs(item) do
			GameKillInventoryItem(player, item);
		end;
	end;
end;

Description

Gets the players inventory entity id

Parameters

N/A

Return Value

Returns the players inventory entity id