# Accessing the Menu

Accessing the Dispatch Menu is by default set to F10 keyboard key. But that can be changed very easily, even with the escrow protected version.

## How to change it

First of all, go to **client/open\_menu.lua**.\
If you want the default key (F10) to be changed, you will have to change that in the RegisterKeyMapping FiveM native:

<img src="https://2644204359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fso4Bz1A5MlataovyRdlF%2Fuploads%2FA0cpAKJ3iFnoDnlJmqvz%2FSnimak%20ekrana%202023-04-04%20210346.png?alt=media&#x26;token=09919912-6971-4d02-92d7-4ddd76c8b537" alt="" data-size="line">

## Using trigger events

If you want to use trigger events instead of using command & key, that is also possible.

You will have to delete all the content from **client/open\_menu.lua** and repace it with a registered net event. Example:

```lua
RegisterNetEvent("uniq-emsdispatch:openUI")
AddEventHandler("uniq-emsdispatch:openUI", function(bool)
    showUI(bool, bool)
end)
```

Later on, this trigger can be used for switching between UI elements by simply triggering the event:

{% tabs %}
{% tab title="Client Side" %}

```lua
TriggerEvent("uniq-emsdispatch:openUI", true)
```

{% endtab %}

{% tab title="Server Side" %}

```lua
TriggerClientEvent("uniq-emsdispatch:openUI", true)
```

{% endtab %}
{% endtabs %}
