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

> Cache un bouton d'action de l'interface de l'inventaire sans le supprimer.

Cache un bouton d'action de l'interface de l'inventaire sans le supprimer.

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

  ```lua Example theme={null}
  -- Cache un bouton temporairement
  exports['jaksam_inventory']:hideActionButton('police_actions')

  -- Cache le bouton quand le joueur n'est plus en service
  AddEventHandler('esx:setJob', function(job)
      if job.name ~= 'police' then
          exports['jaksam_inventory']:hideActionButton('police_actions')
      end
  end)
  ```
</CodeGroup>

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `id` | string | L'identifiant unique du bouton à cacher |

### Valeur de retour

Aucune.


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