# Shortcut buttons

### &#x20;Block use of weapons from ox\_inventory

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:

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

And below the line:

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

You put this code:

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

<figure><img src="https://3165241027-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9c0Pe86hIb7L19e6P9Dk%2Fuploads%2F4pGaiXjPxhJML4rHT4uC%2Fimage.png?alt=media&#x26;token=253fdc9a-d2f2-4659-bd59-d0773dbefacc" alt=""><figcaption></figcaption></figure>

And that's it, restart the server and the player will no longer be able to use the shortcut buttons when playing battle royale.
