Anticheat models

Object and ped models to allow so anticheats do not delete the key locker, the keys, the scanner or the summon driver.

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

Allow these models so they are not deleted as unauthorized props or peds. Everything under "Streamed with the script" ships in the script's own stream/ folder. Do not move or rename those files.

Streamed with the script

ModelUsed as
mrnewb_keylocker_bodyKey locker cabinet body
mrnewb_keylocker_doorKey locker hinged door
mrnewb_keylocker_closedKey locker placement preview
mrnewb_keylocker_open_emptyKey locker open, empty
mrnewb_keylocker_key_classicBasic key, on a hook and when thrown
mrnewb_keylocker_key_smartSmart key, on a hook and when thrown
mrnewb_keylocker_key_luxuryLuxury key, on a hook and when thrown
mrnewb_keylocker_key_boatBoat key, on a hook and when thrown
mrnewb_keylocker_key_motorcycleMotorcycle key, on a hook and when thrown
prop_pooper9The Pooper 9 scanner in the player's hand
mrnewb_vehicle_key_<make>The car maker's own key, on a hook, held for the fob animation and when thrown. 65 models, listed below

The 60 makers plus five key types (basic, smart, luxury, boat, motorcycle). They are only spawned when the fob style is Branded, and a make without its own model falls back to the key type's model.

Stock GTA models

ModelUsed as
prop_cuff_keys_01Key fob in the hand during the fob animation (default, and the fallback for a branded key)
p_car_keys_01A thrown key when the key has no model of its own, or when "match key prop" is off
prop_cs_tabletThe locksmith job's tablet at the bench
prop_laptop_01aThe locksmith job's computer (default model, set per place in the setup panel)
u_m_y_abner (ped)The invisible driver for Summon and Self park. It is created, drives the car, and is removed again
a_m_y_vindouche_01 (ped)The default walk-up locksmith. The model is set per place in the setup panel

Names come from resource/modules/keylocker/shared/definitions.lua, the stream folder, and the setup panel (/setupkeys). The streamed models load through stream/mrnewb_keylocker.ytyp.

Vehicle state guard

The server is the only writer of the vehicle state that decides whether a car can be driven: a key in the ignition, a hotwire and its attempts, a search, remote engine, the boat anchor and the ignore-locks flag. A client that controls a vehicle can write its state bags, so a write that arrives from a client is undone straight away with the last value the server wrote. It works with or without sv_stateBagStrictMode, and it needs no setup.

With Debug messages on, each undone write prints a line in the server console under the security area, naming the state and the entity. A cheat that sets these values will see them revert. Nothing is banned or logged to staff by this guard, so pair it with your anticheat if you want a record.

On this page