CarLock
Description
CarLock adds password locks to compatible cars, boats and motorbikes. Link the remote to an unprotected vehicle and choose a 4–8 digit code. Players can enter the code to gain access. Outside the vehicle, use the remote to lock or unlock it. Inside the vehicle, the contextual interaction works without the remote. Locked cargo is hidden by default. Authorized players can view it in SafeZone if the server confirms that the player is near the vehicle and eligible.
Configuration
Default configuration
CarLock.json
{
"m_Enable": 0,
"m_Logging": 1,
"m_RaidTime": 600,
"m_RaidDamage": 100,
"m_IgnoreVehicles": []
}Options
| Option | Type | Description |
|---|---|---|
m_Enable | bool | With 1, enables vehicle locks and raiding. With 0, disables the module's lock checks and actions. |
m_Logging | bool | With 1, records lock actions. With 0, disables these records. |
m_RaidTime | int | Time in seconds to raid a locked vehicle. Values at or below 0 disable raiding. |
m_RaidDamage | int | Wear on the dedicated tool after a successful raid, as a percentage of maximum health, clamped to 0–100. |
m_IgnoreVehicles | array<string> | Exact classes excluded from linking and raiding. |
Types
types.xml
<type name="AC_CarLock_Control">
<lifetime>7200</lifetime>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>
<type name="AC_CarLock_RaidTool">
<lifetime>7200</lifetime>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0" />
</type>Controls
| Control | Action |
|---|---|
| Vehicle interaction / numeric keypad | Lock or unlock from the seat, or use the remote from outside. If prompted, enter the vehicle code. Use the dedicated raid tool near a locked vehicle to start a raid outside SafeZone. |
A completed raid unlocks the vehicle and clears its password, owner and saved access list. The raider can then link a remote to set a new password.
Permissions
The owner or a player in super-admin mode can manage the password and remove access. Other players need authorization to operate the lock. See Permissions.
