Files
Elite-Gaming-FiveM/resources/xmenu/example.lua
T
2025-05-19 16:45:39 -07:00

30 lines
674 B
Lua

-- local menu = xMenu.New("MyMenuName")
-- local submenu = menu:BindSubMenu("SubMenuName")
-- menu:BindButton("ButtonName", function()
-- print("TRIGGERED!")
-- end)
-- menu:BindCheckbox("Checkbox", function(state)
-- print("STATE: " .. tostring(state))
-- end)
-- submenu:BindButton("ButtonName", function()
-- print("TRIGGERED!")
-- end)
-- submenu:BindList("ListHere", { "1", "2" }, function()
-- print("LIST CALLED!")
-- end)
-- Citizen.CreateThread(function()
-- while true do
-- Citizen.Wait(0)
-- if IsControlJustPressed(0, 121) then
-- if not menu:IsAnyMenuOpen() then
-- menu:OpenMenu()
-- end
-- end
-- end
-- end)