Creating a Menu Example

Exports


exports['glitchy-menu']:SetHead("string")

The code provided here is the command code you should use for your menu title. It takes one parameter.


exports['glitchy-menu']:SetItems('name', "event", {"param", "param2"})

The code provided here is the command code necessary for creating events in the menu. Firstly, it takes an argument for the name from the list. Then, it takes an event name for the trigger, and if you wish, you can enter several parameters when triggering.

Example

RegisterCommand("character", function()
 
    exports['glitchy-menu']:SetHead("My Character Information")
    exports['glitchy-menu']:SetItems('Addiction Status', "glitchy-addiction:server:ShowStatus")
    exports['glitchy-menu']:SetItems('Addiction Form', "glitchy-addiction:client:OpenUI")
    exports['glitchy-menu']:SetItems('Payday', "glitchy-test:client:Test2", {1, 2, 3})
    exports['glitchy-menu']:SetItems('Assets', "glitchy-test:client:Test", {1, 2, 3})
    exports['glitchy-menu']:SetItems('Faction', "glitchy-test:client:Test", {1, 2, 3})
    
end)

Last updated