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

> Elimina un botón de acción previamente registrado de la interfaz del inventario.

Elimina un botón de acción previamente registrado de la interfaz del inventario.

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

  ```lua Example theme={null}
  -- Elimina el registro de un botón cuando ya no se necesita
  exports['jaksam_inventory']:unregisterActionButton('my_custom_button')

  -- Elimina el registro cuando el jugador deja un trabajo
  AddEventHandler('esx:setJob', function(job)
      if job.name ~= 'police' then
          exports['jaksam_inventory']:unregisterActionButton('police_actions')
      end
  end)
  ```
</CodeGroup>

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `id` | string | El identificador único del botón a eliminar (el mismo id usado en `registerActionButton`) |

### Valor de retorno

Ninguno.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.