Skip to content

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
json
{
    "m_Enable": 0,
    "m_Logging": 1,
    "m_RaidTime": 600,
    "m_RaidDamage": 100,
    "m_IgnoreVehicles": []
}

Options ​

OptionTypeDescription
m_EnableboolWith 1, enables vehicle locks and raiding. With 0, disables the module's lock checks and actions.
m_LoggingboolWith 1, records lock actions. With 0, disables these records.
m_RaidTimeintTime in seconds to raid a locked vehicle. Values at or below 0 disable raiding.
m_RaidDamageintWear on the dedicated tool after a successful raid, as a percentage of maximum health, clamped to 0–100.
m_IgnoreVehiclesarray<string>Exact classes excluded from linking and raiding.

Types ​

types.xml
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 ​

ControlAction
Vehicle interaction / numeric keypadLock 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.

Released under the MIT License.