This free keyless entry script for QBCore unlocks your vehicle as you walk up to it. Once you reach the unlocking distance, the lock releases without you having to press a button.
Leaving the vehicle
With automatic locking active, walking away from your empty vehicle makes it lock once you reach the locking distance. Watch for the lights to flash and listen for the distinct sound the vehicle makes when it locks.
If another player is inside when you walk away, reaching that distance is not enough to trigger the lock. The script waits for the vehicle to empty before it locks.
Use /autolock to enable automatic locking. Use the same command again to disable it.
Distance settings and installation
The script integrates with qb-vehiclekeys. You can set how far away a player walks before the vehicle locks. You can also set how close the player gets before it unlocks.
To install the resource on your QBCore server, follow these steps.
Follow the GitHub link in the instructions to download a copy of the script.
Drag the script over to your resources folder and drop it there.
Open server.cfgand addensure tcz-autolock.
With the script added, start your server.
Keyless entry uses the lock and unlock distances you configured.
