> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Hide action button

> Hides an action button from the inventory UI without removing it.

Hides an action button from the inventory UI without removing it.

<CodeGroup>
  ```lua Export theme={null}
  exports['jaksam_inventory']:hideActionButton(id)
  ```

  ```lua Example theme={null}
  -- Hide a button temporarily
  exports['jaksam_inventory']:hideActionButton('police_actions')

  -- Hide button when player is off-duty
  AddEventHandler('esx:setJob', function(job)
      if job.name ~= 'police' then
          exports['jaksam_inventory']:hideActionButton('police_actions')
      end
  end)
  ```
</CodeGroup>

### Parameters

| Name | Data Type | Description                                 |
| ---- | --------- | ------------------------------------------- |
| `id` | string    | The unique identifier of the button to hide |

### Return value

None.


## Related topics

- [Action Buttons](/jaksam-inventory/guides/action-buttons.md)
- [Client](/jaksam-inventory/functions/client/index.md)
- [Register action button](/jaksam-inventory/functions/client/register-action-button.md)
- [Show action button](/jaksam-inventory/functions/client/show-action-button.md)
- [Unregister action button](/jaksam-inventory/functions/client/unregister-action-button.md)
