UPDATE
- Fixed a problem with the latest GMod update.
If you errors in your console when looking at doors, install the update!
UPDATE
- Added support for VC_lockedFromInside to update locked/unlocked display.
- Added support for VC_unlockedFromInside - vice versa -
File(s) updated: lua/autorun/server/advkeys_server.lua
UPDATE
- The script now uses DarkRP hooks to detect locking/unlocking of vehicles to properly change the lock/unlock icons on cars.
- Another method that was previously used caused this to not always update (for example if autovehiclelock was enabled in DarkRP, it would not detect it).
- Localized some functions.
- Added more support for GM.Config.autovehiclelock in DarkRP.
- If you have this enabled it will flash lights and play the car lock bip sound when you leave the vehicle.
- It has full VCMod support for the lights.
The configuration file has not been edited. You can copy/paste it back to your settings after updating the script.
UPDATE
- Fixed problem where the car alarm would go off when lockpicking normal doors on the map if ALARM_AlwaysActive config was enabled.
Only file effected is lua/autorun/server/advkeys_server.lua
UPDATE
- Moving away from a door while locking/unlocking will now no longer succed. You must stay in position and aim at the door.
- Added config CH_ADVKeys.Config.ALARM_AlwaysActive. If this is enabled all vehicles will always be equipped with a vehicle alarm and the entity will no longer be available in the F4 menu.
- Added a category by default called "Vehicle Accessories" and put the vehicle alarm entity in that category.
- Fixed the /buyvehiclealarm chat command not working.
UPDATE
- Fixed another problem with the keys car unlocking.
UPDATE
- This patch fixes an error with yesterdays update.
UPDATE
- New config structure.
- Added config CH_ADVKeys.Config.LockUnlockNotify to notify the owner of locks/unlocks if you want. Disabled by default.
- Vehicle alarms can now go off if a vehicle goes below a certain health.
- Notify the owner if the vehicle alarm goes off due to taking shots.
- Better support for VCMod when doors lock automatically, to update the keys display.
Throw any suggestion you might have in the discussion section and we will see about it. Next thing will be looking into custom skins for the keys model.
- Traces changed to HitPos so certain doors will now actually work from all angles/positions when you look at it. Thanks 🐰🔫
- When a vehicle is unlocked it no longer activates the vehicle alarm when lockpicked.
- You can no longer double knock on doors with both mouse 1 and 2 at the same time. There is a config for delay.
- Speed of locking/unlocking has been tweaked a bit.
This update also introduces a vehicle alarm. You can buy it as an entity in the F4 menu and drop it on your car.
It will automatically deploy, play a sound and notify you.
When lockpicked it will check if the vehicle has an alarm equipped and if it does alarm sound will go off and with VCMod you will see the lights flashing constantly as long as the alarm is still active.
It will turn off after a while, but the owner can also lock/unlock the vehicle with his keys to make lights and siren stop.
There are two configurations you can modify for the alarm in advkeysconfig.lua, and you can modify the F4 entity in advkeysdarkrpadds.lua.
The model is of course created by Im Not Meow Meow. Check it out here and in the media section!
There is a new preview video out. Watch it HERE
The workshop content has also been updated.
- Fixed some IsValid checks that I forgot (this could cause errors if you died when using keys for example)
Initial version.