Lua Events/OnFillInventoryObjectContextMenu

From PZwiki
< Lua Events
Revision as of 22:35, 13 June 2023 by Faalagorn (talk | contribs) (Faalagorn moved page Lua Events/OnFillInventoryObjectContextMenu to Lua Events/OnFillInventoryObjectContextMenu: Avoid Modding: prefix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Event

OnFillInventoryObjectContextMenu

Description

Triggered when inventory object context menus are being filled.

Parameters

  • Integer The index of the player for which the context menu is being filled.
  • KahluaTable The context menu to be filled.
  • KahluaTable The items available in the player inventory.

Examples

local function OnFillInventoryObjectContextMenu(playerIndex, table, items)
	-- Your code here
end

Events.OnFillInventoryObjectContextMenu.Add(OnFillInventoryObjectContextMenu)

See also