preview
-- ARGUMENTS
-- data: table {
-- label: string
-- icon: string
-- text: string
-- retEvent: string
-- retArgs: any
-- }
-- RETURNS
-- nil
local previewMenu = {
label = "Shop",
icon = "fas fa-solid",
text = "Interact with this shop.",
retEvent = "openShop",
retArgs = {shopName = "someShop",foo = "bar"}
}
ti.menus.preview(previewMenu)
AddEventHandler("openShop",function(data)
print(data.shopName)
end)
Last updated