FiveM Profile | Support Me Here
A very basic vehicle locking system. By default players part of the ambulance or police job can open any emergency vehicle as if it was their own. You can change this in server.lua and within the 'bixbi_vehkeys:CheckKey' event.
- "Ox" ESX, You can modify for other frameworks. Please make a PR if you do
- bixbi_core
- qtarget
- zf_dialog
You will need to use the following exports when a vehicle is spawned, to give them the correct key
Give Player a Key - Server Only
TriggerEvent('bixbi_vehkeys:AddKey', playerId, plate)
Example:TriggerEvent('bixbi_collection:AddKey', 1, "LE4H")
Remove Key from Player - Server Only
TriggerEvent('bixbi_vehkeys:RemoveKey', playerId, plate)
Example:TriggerEvent('bixbi_vehkeys:RemoveKey', 1, "LE4H")
Feel free to modify to your liking. Please keep my name (Leah#0001) in the credits of the fxmanifest. If your modification is a bug-fix I ask that you make a pull request, this is a free script; please contribute when you can.