# UI Additions

You can add interactions for a specific type to open a different menu or UI when the top corner button is clicked.

For example:

#### `sconfig.lua`

```lua
Config.linkList = {
    ['job'] = 'http://rsg-multijob/openuifromxpbook',
    --http://SCRIPTNAME/NUICALLBACKSTRING
}
```

{% hint style="warning" %}
The string in the NUI Callback has to be unique, or copy the one that your script is using and use that !
{% endhint %}

For this to work, you need to create a callback in the script you want to interact with or use the provided NUI callback from your own scripts. For instance, to make the above example work, add the following to `rsg-multijob` :

```lua
RegisterNUICallback("openThisFromXpBook", function (cb)
    TriggerEvent('rsg-multijob:client:openmenu')
    cb('ok')
end)
```

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.infinitypulse.dev/redm/xp-system/ui-additions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
