> For the complete documentation index, see [llms.txt](https://lt-studios.gitbook.io/lt-studios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lt-studios.gitbook.io/lt-studios/assets/editor/api-for-developers/server-side-exports/adddummyplayertomenu.md).

# AddDummyPlayerToMenu

### Parameters

* `dummySource` *(number)* – The dummy's source (Should be unique - not a real player's Server ID).
* `type` *(string)* – The menu type (e.g., `"jobs"` or any defined category).
* `parent` *(string)* – The parent group or job key (e.g., `"police"`).
* `id` *(string)* – The specific menu ID under the parent (e.g., `"main"`).
* `dummyData` *(table)* – A table containing the dummy player's data (e.g., `name`, `grade`, `callsign`).

**Notes:**&#x20;

1. Keys in `dummyData` must match the menu's `data` and `getters` fields to appear correctly.
2. For **styling** support (Version 1.5.0+):\
   You must include a `data` table that maps the menu's data order to the keys in `dummyData`.\
   This is **required** for the styling system to know which value applies to each index.

### Usage Example

```lua
exports['lt-10system']:AddDummyPlayerToMenu(927361, 'other', 'f1', 'monaco', {
  image = "assets/max-verstappen.png",
  name = "Max Verstappen",
})
```

### Usage Example for Styling (Version 1.5.0+)

```lua
exports['lt-10system']:AddDummyPlayerToMenu(927361, 'other', 'f1', 'monaco', {
  image = "assets/max-verstappen.png",
  name = "Max Verstappen",
  data = { -- The `data` table defines which field is used for each menu index (used by the styling system)
    [1] = "image",
    [2] = "name",
  },
})
```
