Set up vehicle sync
Vehicle sync can automatically create vehicle register entries in CopNet from vehicles stored in your database.
Requirements
- Create sync user
- Share database externally
- VPC Connector FiveM version
3.2.0-Stableor newer
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.