These modules allow you to lock and unlock vehicles and their inventory using a key. Players don’t receive a key automatically.
2. Mission Setup
Vehicle Lock can be configured through a mission module or functions.
For key names, see Class Names.
Sync the module with vehicles and players. Custom keys will be handed to players for every synced vehicle. It is only valid for objects present at mission start.
3.1 Assing Vehicle Key
|Arguments||Type||Optional (default value)|
|2||Use Custom Key||Boolean||Optional (default: |
[bob, car1, true] call ace_vehiclelock_fnc_addKeyForVehicle;
|0|| ||Unit the key will be added to|
|1|| ||Vehicle the key will work on|
|2|| ||Set custom key|
3.2 Override Side
To override a vehicle’s side, allowing locking and unlocking using a different side’s key, use the following on that vehicle (use wanted side instead of
this setVariable ["ace_vehiclelock_lockSide", west];
3.3 Set Lock Pick Strength
To override default lock pick strength for a vehicle, that is how long lock picking will take, use the following on that vehicle (use wanted time in seconds instead of
this setVariable ["ace_vehiclelock_lockpickStrength", 5];