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

# Statut modifié

> Déclenché côté serveur après le changement de statut au registre d'un vrai document.

Cet event est déclenché après le changement de statut au registre d'un vrai document, par exemple quand il est déclaré volé dans une mairie ou suspendu avec l'export [Changer le statut](/fr/jaksam-identity/server/register/set-status).

<CodeGroup>
  ```lua Event theme={null}
  AddEventHandler("jksm_identity:statusChanged", function(serial, status, previous)

  end)
  ```

  ```lua Example theme={null}
  AddEventHandler("jksm_identity:statusChanged", function(serial, status, previous)
      if status == "stolen" then
          -- flag it in your MDT
          exports["my_mdt"]:AddFlag(serial, "Reported stolen")
      end
  end)
  ```
</CodeGroup>

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `serial` | string | Le numéro du document |
| `status` | string | Le nouveau statut : `valid`, `lost`, `stolen`, `seized`, `suspended`, `replaced` ou `revoked` |
| `previous` | string | Le statut d'avant |


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