Anticheat models
Object and ped models to allow so anticheats do not delete the key locker, the keys, the scanner or the summon driver.
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
| Model | Used as |
|---|---|
mrnewb_keylocker_body | Key locker cabinet body |
mrnewb_keylocker_door | Key locker hinged door |
mrnewb_keylocker_closed | Key locker placement preview |
mrnewb_keylocker_open_empty | Key locker open, empty |
mrnewb_keylocker_key_classic | Basic key, on a hook and when thrown |
mrnewb_keylocker_key_smart | Smart key, on a hook and when thrown |
mrnewb_keylocker_key_luxury | Luxury key, on a hook and when thrown |
mrnewb_keylocker_key_boat | Boat key, on a hook and when thrown |
mrnewb_keylocker_key_motorcycle | Motorcycle key, on a hook and when thrown |
prop_pooper9 | The 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
| Model | Used as |
|---|---|
prop_cuff_keys_01 | Key fob in the hand during the fob animation (default, and the fallback for a branded key) |
p_car_keys_01 | A thrown key when the key has no model of its own, or when "match key prop" is off |
prop_cs_tablet | The locksmith job's tablet at the bench |
prop_laptop_01a | The 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.
