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

# Heist started

> Triggered when a heist starts.

Triggered when a step is finished in the first stage of a heist that hasn't started yet.

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

end)
```

### Parameters

| Name      | Data Type | Description     |
| --------- | --------- | --------------- |
| `heistId` | integer   | ID of the heist |

## Example

```lua theme={null}
RegisterNetEvent("robberies_creator:heist:heistStarted", function(heistId)
    -- just an example, will do nothing useful, you may want to retrieve data from the database

    print("Heist with ID " .. heistId .. " has just started")
end)
```

<Note>
  Place this code in the file `integrations/sv_integrations.lua` of the script, at the bottom of the file on new lines.
</Note>


## Related topics

- [Server](/robberies-creator/server/index.md)
- [Heist finished](/robberies-creator/server/heist-finished.md)
- [How to start](/missions-creator/how-to-start.md)
- [FAQ](/robberies-creator/faq.md)
