Paramters:
- float position X
- float position Y
- string title Menu
- strint type Menu 'default or shop' is the default mode is automatically selected returns the created Menu
createMenu(85, 350, "Example Menu")
Paramters:
- element Menu
- string left Item
- string right Item returns the created Menu item
local theMenu = createMenu(85, 350, "Example Menu")
createItem(theMenu, "Left item", "Right item")
Paramters:
- element Menu returns true if the item is destroyed returns false if no item is found
local theMenu = createMenu(85, 350, "Example Menu")
destroyMenu(theMenu)
Paramters:
- element Menu returns true if the item is destroyed returns false if no item is found
local theMenu = createMenu(85, 350, "Example Menu")
showMenu(theMenu)
hiddenMenu
Paramters:
- element Menu returns true if the item is destroyed returns false if no item is found
local theMenu = createMenu(85, 350, "Example Menu")
hiddenMenu(theMenu)
Paramters:
- element Menu
- string Menu type Available menu types are: "default", "shop" returns true if a good type is input, otherwise false
local theMenu = createMenu(85, 350, "Example Menu")
setTypeMenu(theMenu, "shop")
Paramters:
- element Menu
- string left column
- string right column
🔴 Only for the store type
local theMenu = createMenu(85, 350, "Example Menu")
setTypeMenu(theMenu, "shop")
setMenuColumn(theMenu, "Products", "Price")
Paramters:
- string Item1
- string Item2
returns the item that has been selected
function exampleSelect(theItem1, theItem2)
print(theItem1, theItem2, "select this item")
end
addEventHandler("onClientMenuSelect", theItem, exampleSelect)
Paramters:
- the player who closed the menu return a Menu element that has been closed is returned
function exampleEscape(theMenu)
print(theMenu, "menu is closed")
end
addEventHandler("onClientMenuSelect", theMenu, exampleEscape)