Lua Events/OnFillWorldObjectContextMenu
< Lua Events(Redirected from Lua Events/OnFillWorldObjectContextMenu)
Event
OnFillWorldObjectContextMenu
Description
Triggered when world 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 world objects available nearby the player.
- Boolean Set to true if called for the purpose of testing for nearby objects.
Examples
local function OnFillWorldObjectContextMenu(playerIndex, context, worldObjects, test) -- Your code here end Events.OnFillWorldObjectContextMenu.Add(OnFillWorldObjectContextMenu)