Lua Events/OnPreFillInventoryObjectContextMenu

From PZwiki
< Lua Events
Revision as of 21:20, 23 June 2023 by Faalagorn (talk | contribs) (Faalagorn moved page Lua Events/OnPreFillInventoryObjectContextMenu to Lua Events/OnPreFillInventoryObjectContextMenu: Remove Modding: prefix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Event

OnPreFillInventoryObjectContextMenu

Description

Triggered before context menus get filled with options.

Parameters

  • Integer The player ID 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 OnPreFillInventoryObjectContextMenu(playerID, context, items)
	-- Your code here
end

Events.OnPreFillInventoryObjectContextMenu.Add(OnPreFillInventoryObjectContextMenu)

See also