Possible to Auto CodeLock preset vehicles?Solved

in config there is an option:

"Name": "Car",
"Options": {
"Modules": [
"vehicle.1mod.cockpit.with.engine",
"vehicle.1mod.rear.seats",
"vehicle.1mod.engine"
],
"EnginePartsTier": 2,
"FuelAmount": 25,
"CodeLock": true

in the /data/SpawnModularCar_CommonPresets.json, there is no CodeLock option:

{
"Name": "Car2",
"ModuleIDs": [
170758448,
1559779253
]
},

maybe there is another way to auto codelock preset vehicles that I'm missing.

if I run /vlock from the other plugin, it works fine.

The Server Presets functionality (your first example), which can be given with the givecar command, does support code locks as an explicit option. However, common presets (your second example), which work similar to player presets, do not have the option explicitly.

Instead, since common presets are spawned by the player directly, they follow the player's permissions and preferences to determine whether a code lock should be automatically added. Players can toggle that preference with the mycar autocodelock command, as long as they have the spawnmodularcar.autocodelock permission. They can view their current value for the option by running mycar help (if they have permission to toggle that value, it will be shown).

Thank you for the explanation.  I was hoping it was available instead of having them needing to type in another command.  Appreciate it!

Locked automatically