Vehicles and jobs

Job keys, key storages, and per-vehicle rules.

In-development version. These docs cover the testing build of VehicleKeys. The official release is still documented on the GitBook linked in its README.

Part of Configuration. Open /setupkeys to change these.

Job keys and key storages

Job keys: everyone with the job gets keys to that job's listed vehicles (police and ambulance models by default). Require on duty counts only while clocked in. Autolock locks the car behind the last driver.

Key storages (Advanced, 2 police lockers by default): a cabinet with 12 hooks where a job hangs spare keys. Players reach it through the interaction style below.

Vehicle rules and exceptions

The Exceptions and Vehicle rules pages (Advanced) hold the rules in Per-vehicle rules. Factory rules: bicycles, trailers, trains and farm or yard equipment need no key, police, ambulance and fire vehicles cannot be stolen, and taxis, tow trucks and flatbeds need the advanced lockpick. The Electric & convertible page and the Missing names page (cars that show a blank name) are Advanced too.

Per-vehicle rules

Each field falls back one tier at a time:

plates -> models -> classes -> types -> default

An entry only names the settings it changes. Chances are 0.0 to 1.0 (dispatch alert chances are 0 to 100).

SettingMeaning
Never needs a keyNever needs or receives a key
Cannot be stolenBlocks hotwire, carjack, search, and lockpick
Cannot be lockpickedBlocks lockpicking only
Needs advanced lockpickNormal lockpick blocked
Cannot be carjackedBlocks carjacking only
Parked vehicle locked chanceChance an empty unowned vehicle is locked
Driving NPC vehicle locked chanceChance an NPC-driven vehicle is locked
Search finds keysChance a search turns up the keys
Lockpick breaks / Advanced lockpick breaksChance that pick breaks
Hotwire, lockpick, advanced lockpick and key cutting difficultyEasy, medium, hard, or blocked
Front trunkRear-engine cars whose trunk is at the front

plates is exact plate text. models is a hash or spawn name. types is automobile, bike, boat, heli, plane, submarine, trailer, train. Pedal bikes report as bike, so list those by model. Server-enforced fields have to live on models, types, plates, or on a class that also has a models list. The server warns at start if a class is missing that list, or a chance is outside 0.0–1.0.

Shared job vehicles

Employees share keys to that job’s vehicles. Require on duty counts only while clocked in. Autolock locks the car behind the last driver. Prefer models and plates. A classes entry only matches on the server when that class also has a models list.

On this page