To define a menu in RSG, use the lib.registerContext function. This function sets up the menuโs structure, including its title, options, and associated actions.
Copy
lib.registerContext({ id = "example_menu", title = "Example Menu", options = { { title = "Open Inventory", icon = "fa-solid fa-box", description = "View your inventory items.", event = "inventory:client:open", arrow = true }, { title = "Toggle Duty", icon = "fa-solid fa-shield", event = "job:client:toggleDuty" } }})