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

# Robo finalizado

> Se activa cuando se completa un robo.

Se activa cuando se completa un robo (en el mismo momento en que la consola del servidor registra `"Heist has been completed"`).

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

end)
```

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `heistId` | integer | ID del robo |

## Ejemplo

```lua theme={null}
RegisterNetEvent("robberies_creator:heist:heistFinished", function(heistId)
    -- solo un ejemplo, no hará nada útil, puede que quieras obtener datos de la base de datos

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

<Note>
  Coloca este código en el archivo `integrations/sv_integrations.lua` del script, al final del archivo en líneas nuevas.
</Note>


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