Hey everyone! I’m back and this time with a utility script:
Keyless Entry for QBCore
Auto Lock & Unlock Distance Based.
I’ve put together something small but packed with immersive feeling. This is a script that automatically 🔒Locks your car when you walk away and 🔓Unlocks it when you get close.
Just like a real keyless entry system!
Your car will even flash its lights and play a distinguishable locking sound to let you know it’s secure.
How To Use It?
- Simple command to Activate or Deactivate
/autolockand voilà

What Does It Do?
-
Auto-Lock: When you walk away from your vehicle, it automatically locks itself.

-
The lights flash, and you hear a satisfying lock sound for that immersive touch!
-
Auto-Unlock: As you approach your car, it unlocks automatically 🎮No Buttons Needed!

-
Smart Lock: If there is a player in the car, it wait until the car is empty before locking. -
Configurable Lock/Unlock Distance: Adjust the range to make it work just right for your server setup.
-
Seamless qb-vehiclekeysIntegration
How to Install
Download the script from the GitHub link below.
Drag and drop it into your resources folder.
Add ensure tcz-autolockto your server.cfg.
Start your server and enjoy Seamless Keyless Entry! 
And That’s It!
No over-the-top customization, just clean and effective feature to make your vehicles smarter and your server cooler.
UPDATE 1.1
Added .configPersistence; Now You don’t have do the command anymore after youQUIT / SERVER RESTARTafter you toggled it.
Added .configaudio feedback when you activate autolock. Change it to the sound you want!
| Code is accessible | Yes |
| Lines (approximately) | ~103 |
| Requirements & dependencies | qb-vehiclekeys |
| Support | No |



