
REQUIREMENTS
– ScriptHookV
– ScriptHookVDotNet
– A mod that makes car persistent.
OTHER MODS
You will need a mod that makes car persistent, if you don’t have one install one of these:
– Simple Trainer
– Remote Vehicle Control
DESCRIPTION
This mod make the player lock and unlock car automatically and without touching a button.
Features:
– Lock car when exiting it,
– Unlock car when trying to enter it (when you want to get in it),
– Lock and unlock only owned vehicles (the script will consider a vehicle owned by the player if it is persistent (doesn’t despawn) and was already driven by the player),
– Lock when canceled entering vehicle,
– Lock only if all car doors are closed,
– Lights on when unlocking (neon lights on when unlocking if it is installed in the car),
– Interrior lights when unlocking,
– No horn sound (silent),
– Up to 5 cars.
INSTALLATION
Put “AutomaticLockUnlock.dll” in “scripts” folder.
Changelog:
3.1.1:
– Fixed cars ever locked after reloading scripts.
3.1:
– Added controller support.
– Added automatic lock when the player is inside the car.
– Added ability to lock/unlock car manually inside and outside the car.
– Added compatibility with other personal vehicles mods like Personal Vehicle.
– Added map blips.
– Improved lights times.
– Improved hints and notifications.
3.0.1:
– Fixed sound file location issue,
– Included “NAudio.dll”.
3.0:
– Rewrote script,
– Added alarm and locking/unlocking sound,
– Added Roll up windows option,
– Added unsave vehicle key option,
– Added Coming Home option,
– Added compatibility with Coil Features,
– Added option to enable/disable interior lights,
– Added option to enable/disable headlights,
– Added option to enable/disable blinkers,
– Improved lights time,
– Improved hint display,
– Fixed interior lights doesn’t turn off,
– Increased max vehicles to 20.
2.0:
– Rewrote the script,
– Fixed can’t reenter nodoors vehicles and helis after exiting,
– Fixed lock not owned cars like when you exit a taxi it will be locked,
– Improved indicator lights blinking,
– Added ini file for toggling autosave vehicle and custom key to save vehicle.
1.0:
– First release.
Credits:
Mehdi Zoubai
– Alexander Blade,
– Community.




