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

> Versteckt einen Action Button in der Inventar-UI, ohne ihn zu entfernen.

Versteckt einen Action Button in der Inventar-UI, ohne ihn zu entfernen.

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

  ```lua Example theme={null}
  -- Einen Button vorübergehend verstecken
  exports['jaksam_inventory']:hideActionButton('police_actions')

  -- Verstecken, wenn der Spieler nicht im Dienst ist
  AddEventHandler('esx:setJob', function(job)
      if job.name ~= 'police' then
          exports['jaksam_inventory']:hideActionButton('police_actions')
      end
  end)
  ```
</CodeGroup>

### Parameter

| Name | Datentyp | Beschreibung                                        |
| ---- | -------- | --------------------------------------------------- |
| `id` | string   | Die eindeutige Kennung des zu versteckenden Buttons |

### Rückgabewert

Keiner.


## Related topics

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