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

# Braquage terminé

> Se déclenche quand un braquage est terminé.

Se déclenche quand un braquage est terminé (au même moment où la console du serveur affiche `"Heist has been completed"`).

```lua Event theme={null}
RegisterNetEvent("robberies_creator:heist:heistFinished", function(heistId)

end)
```

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `heistId` | integer | ID du braquage |

## Exemple

```lua theme={null}
RegisterNetEvent("robberies_creator:heist:heistFinished", function(heistId)
    -- juste un exemple, ne fera rien d'utile, tu voudras peut-être récupérer des données depuis la base de données

    print("Heist with ID " .. heistId .. " is finished")
end)
```

<Note>
  Place ce code dans le fichier `integrations/sv_integrations.lua` du script, en bas du fichier sur de nouvelles lignes.
</Note>


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