๐Ÿ” Usage

Opening the Radial Menu

  • By default, press [F1] to open the radial menu. This keybinding can be modified in the configuration file.

Adding Custom Menu Options

You can configure menu items in the config.lua file. Example:

PA.RadialMenu = {
    {
        id = "vehicle",
        title = "Vehicle Options",
        icon = "car",
        items = {
            {id = "engine", title = "Toggle Engine", event = "pa-vehicle:toggleEngine"},
            {id = "doors", title = "Lock/Unlock Doors", event = "pa-vehicle:lockDoors"},
        }
    },
    {
        id = "player",
        title = "Player Actions",
        icon = "user",
        items = {
            {id = "inventory", title = "Open Inventory", event = "qb-inventory:openInventory"},
            {id = "handsup", title = "Hands Up", event = "pa-player:handsUp"},
        }
    }
}
  • id: Unique identifier for the menu category.

  • title: Display name in the radial menu.

  • icon: Icon representation for the category.

  • items: List of actions available under the category.

  • event: The client or server event triggered when selecting the item.

Targeting System Integration

The radial menu supports interaction with qb-target and ox_target. Ensure these dependencies are correctly installed and configured.

Last updated

Was this helpful?