> For the complete documentation index, see [llms.txt](https://mstudio-1.gitbook.io/mstudio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mstudio-1.gitbook.io/mstudio/kz-resources/editor-12/exports/server-exports.md).

# Server Exports

<table data-header-hidden><thead><tr><th width="207"></th><th width="176"></th><th width="209"></th><th></th></tr></thead><tbody><tr><td><strong>Export</strong></td><td><strong>Description</strong></td><td><strong>Arguments</strong></td><td><strong>Returns</strong></td></tr><tr><td><code>SaveNewVehicle(netId)</code></td><td>Manually register a vehicle in the persistence database.</td><td><code>vehicleNetId</code> (number)</td><td><code>nil</code></td></tr></tbody></table>

## 📥 Export Usage Example

{% hint style="info" %}
Example of integration with a dealership system
{% endhint %}

```lua
local vehicle = CreateVehicle(model, coords, heading, true, true)
local netId = NetworkGetNetworkIdFromEntity(vehicle)

exports['Kz-PersistenceVehicle']:SaveNewVehicle(netId)
```

{% hint style="danger" %}
Only if **ALL OPTIONS** inside "**Config.SaveSettings"** are disabled, use this export
{% endhint %}
