> ## 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.

# Unregister action button

> Removes a previously registered action button from the inventory UI.

Removes a previously registered action button from the inventory UI.

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

  ```lua Example theme={null}
  -- Unregister a button when no longer needed
  exports['jaksam_inventory']:unregisterActionButton('my_custom_button')

  -- Unregister when player leaves a job
  AddEventHandler('esx:setJob', function(job)
      if job.name ~= 'police' then
          exports['jaksam_inventory']:unregisterActionButton('police_actions')
      end
  end)
  ```
</CodeGroup>

### Parameters

| Name | Data Type | Description                                                                            |
| ---- | --------- | -------------------------------------------------------------------------------------- |
| `id` | string    | The unique identifier of the button to remove (same id used in `registerActionButton`) |

### Return value

None.


## Related topics

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