Skip to main content

Set up vehicle sync

Vehicle sync can automatically create vehicle register entries in CopNet from vehicles stored in your database.

Requirements​

Important

Activate vehicle sync only in one Net. Otherwise duplicate vehicle entries can be created.

Configure the script​

Open your Config.lua and activate vehicle sync by setting the matching vehicle option to true.

Import the supplied SQL file before activating the sync. If your owned_vehicles table already has an id column or another auto-incrementing vehicle ID, do not add another one.

Configure CopNet​

Open CopNet settings and enter the database connection data for vehicle sync. If a test fails, use Fix sync errors.