> For the complete documentation index, see [llms.txt](https://risk-scripts.gitbook.io/risk-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://risk-scripts.gitbook.io/risk-scripts/scripts/editor/installation.md).

# Installation

1. **Download & Extract**
   * [ ] Download the script from [<mark style="color:red;">Tebex</mark>](https://risk-scripts.tebex.io/).
   * [ ] Extract the folder into your FiveM resources directory.
2. **Add to Server Config**
   * [ ] In your server.cfg (or equivalent), \
     add: <mark style="color:red;">`ensure litz_radialmenu`</mark>\
     &#x20;
   * [ ] Adjust script name as needed (e.g., <mark style="color:red;">`ensure risk_radialmenu`</mark>).
3. **Configure**
   * [ ] Open the config files to set up the default command, key mappings, colors, and other options.
   * [ ] (Optional) Adjust the included <mark style="color:red;">`bridge.lua`</mark> if you use ESX/QBCore or any custom framework detection.

#### <mark style="color:red;">SCRIPT ERROR: @litz\_radialmenu/client/bridge.lua:10: No such export getSharedObject in resource</mark>

## <mark style="color:yellow;">QB-CORE</mark>

1. **Open the file**\
   `client/bridge.lua`
2. **Remove every line that mentions**
   * `es_extended` (ESX)
   * `qbx_core`(QBOX)

## **Not sure what to delete?**

Just select the entire file, press **Delete**, and paste the code below.

**Save the file** and restart (or reload) the resource.

```lua
function GetPlayerJob()
    if exports and exports['qb-core'] and exports['qb-core'].GetCoreObject then
        local QBCore = exports['qb-core']:GetCoreObject()
        if QBCore and QBCore.Functions and QBCore.Functions.GetPlayerData then
            local qData = QBCore.Functions.GetPlayerData()
            if qData and qData.job then
                return qData.job.name
            end
        end
    end
    return nil
end
```

##

## <mark style="color:yellow;">QBOX</mark>

1. **Open the file**\
   `client/bridge.lua`
2. **Remove every line that mentions**
   * `es_extended` (ESX)
   * `qb-core`

## **Not sure what to delete?**

Select the whole file, press **Delete**, and paste the code below.

**Save the file** and restart (or reload) the resource.

```lua
function GetPlayerJob()
    if exports and exports['qbx_core'] then
        local success, data = pcall(function()
            return exports['qbx_core']:GetPlayerData()
        end)
        if success and data and data.job then
            return data.job.name
        end
    end
    return nil
end
```

##

## <mark style="color:yellow;">ESX</mark>

1. **Open the file**\
   `client/bridge.lua`
2. **Remove every line that mentions**
   * `qbx_core` (QBOX)
   * `qb-core`

## **Not sure what to delete?**

Select the entire file, press **Delete**, and paste the code below.

**Save the file** and restart (or reload) the resource.

```lua
function GetPlayerJob()
    if exports and exports['es_extended'] and exports['es_extended'].getSharedObject then
        local ESX = exports['es_extended']:getSharedObject()
        if ESX and ESX.GetPlayerData then
            local esxData = ESX.GetPlayerData()
            if esxData and esxData.job then
                return esxData.job.name
            end
        end
    end
    return nil
end
```
