> For the complete documentation index, see [llms.txt](https://laot7490.gitbook.io/ltbridge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://laot7490.gitbook.io/ltbridge/game-systems/target/target-options.md).

# Target Options

Every `LT.Target.Add*` function takes an `options` array. Each entry is one interaction choice the player sees.

## Option fields

| Field         | Type         | Required | Description                                   |
| ------------- | ------------ | -------- | --------------------------------------------- |
| `label`       | string       | Yes      | Text shown in the target menu                 |
| `icon`        | string       | No       | Font Awesome icon (e.g. `fas fa-box`)         |
| `onSelect`    | function     | No       | Called when the player selects this option    |
| `action`      | function     | No       | Alias for `onSelect`                          |
| `event`       | string       | No       | Client event to trigger instead of a callback |
| `serverEvent` | string       | No       | Server event to trigger                       |
| `job`         | string/table | No       | Restrict to specific job(s)                   |
| `jobType`     | string       | No       | Job type restriction (qb-target)              |
| `groups`      | string/table | No       | Alias for job restriction                     |
| `canInteract` | function     | No       | Return false to hide this option dynamically  |
| `distance`    | number       | No       | Max interaction distance for this option      |

## Example

```lua
LT.Target.AddSphereZone('shop_zone', vector3(100.0, 200.0, 30.0), 1.5, {
    {
        label = 'Open Shop',
        icon = 'fas fa-shopping-basket',
        onSelect = function()
            -- open your shop UI
        end,
    },
    {
        label = 'Browse Catalog',
        icon = 'fas fa-book',
        event = 'myshop:client:openCatalog',
    },
}, false)
```

LTBridge normalizes options for both ox\_target and qb-target automatically.

Back to [Target](/ltbridge/game-systems/target.md)
