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

> Oculta un botón de acción de la interfaz del inventario sin eliminarlo.

Oculta un botón de acción de la interfaz del inventario sin eliminarlo.

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

  ```lua Example theme={null}
  -- Oculta un botón temporalmente
  exports['jaksam_inventory']:hideActionButton('police_actions')

  -- Oculta el botón cuando el jugador está fuera de servicio
  AddEventHandler('esx:setJob', function(job)
      if job.name ~= 'police' then
          exports['jaksam_inventory']:hideActionButton('police_actions')
      end
  end)
  ```
</CodeGroup>

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `id` | string | El identificador único del botón a ocultar |

### Valor de retorno

Ninguno.


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