Installation
Install tc-contextmenu: resources, tables, admin rights and first test.
#1. Copy and start
Copy tc-contextmenu into resources, then in server.cfg:
server.cfg
ensure oxmysql
ensure tc-ui
ensure tc-contextmenuThe framework (Vision, ESX, QBCore, Qbox) can start before or after; simply place it before tc-contextmenu so jobs are read at load time.
#2. Tables
The tc_contextmenu_options and tc_contextmenu_overrides tables are created automatically at start-up. To do it by hand: install/install.sql (see Database).
#3. Admin rights
To open /gestioncontexte:
server.cfg
add_ace group.admin command allowOr use Config.Bridge.Admins (identifier list), or Config.ManageAce for a dedicated ACE permission.
#4. Try it in game
- Press Left Alt: the cursor appears. The key can be changed in Settings → Key Bindings → FiveM.
- Right-click the target (player, ped, vehicle, object or world).
- The menu opens. Backspace closes it.
With Config.OpenMode = 'hold', you must hold the key instead of toggling it.
#5. Add your first options
Either in game with /gestioncontexte (the easiest), or by code from your scripts (see Integration).
Items
No item to create.