# Shortcut buttons

#### Block use of weapons from ox\_inventory <a href="#block-use-of-weapons-from-ox_inventory" id="block-use-of-weapons-from-ox_inventory"></a>

If you use ox\_inventory and want to block the use of weapons from slots, numbers 1 to 5 follow the tutorial below

1. Open the `client.lua` file from **ox\_inventory**.
2. Find the following line:

<a class="button secondary">Copiar</a>

```lua
local function useSlot(slot, noAnim)
```

And below the line:

<a class="button secondary">Copiar</a>

```lua
if not item then return end
```

You put this code:

<a class="button secondary">Copiar</a>

```lua
if LocalPlayer.state.inArena then return end
```

<figure><img src="https://3165241027-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9c0Pe86hIb7L19e6P9Dk%2Fuploads%2FzWha3CIHi3kgTidljPyc%2Fimage.png?alt=media&#x26;token=f0a824d9-0b5c-4e2a-9445-f8d27e6030c6" alt=""><figcaption></figcaption></figure>
