Developer Notes

Park Anywhere Integration

There are built in checks to aquire your vehicle keys after a restart if you are using a park anywhere type garage system. Simply toggle vehicle locks (default L) or use the vehicles keyfob (if enabled) near the vehicle. The script will check if you own it and give you keys or setup your keyfob accordingly.

State Bags

The following state bags can be used in other scripts to disable features of the vehicle key system

Hotwired

Disabled a vehicle from being able to be hotwired

--Client
Entity(vehicle).state:set('Hotwired', 'Failed', true)

--Server
Entity(vehicle).state.Hotwired = 'Failed'

LockpickDisabled

Disable a vehicle from being able to be lockpicked

--Client
Entity(vehicle).state:set('LockpickDisabled', true, true)

--Server
Entity(vehicle).state.LockpickDisabled = true

MK_Disable_TakeKeys

Disable an NPC from giving keys to a player after being shot and dragged out of a vehicle

--Client
Entity(ped).state:set('MK_Disable_TakeKeys', true, true)

--Server
Entity(ped).state.MK_Disable_TakeKeys = true

MK_Disable_CarJack

Disable an NPC from being able to be carjacked

--Client
Entity(ped).state:set('MK_Disable_CarJack', true, true)

--Server
Entity(ped).state.MK_Disable_CarJack = true

Last updated