Vehicle Keys

Automatically supports qb-vehiclekeys, and by extension qbx_vehiclekeys.

If you are using a different vehicle keys script then set Config.QBVehicleKeys to false in the config and add your vehicle keys exports/events to the CustomUnlockVehicleEvent and CustomLockVehicleEvent functions in the config file

If the vehicle keys script you're using requires the vehicle plate instead of the vehicle entity id then add this to the functions mentioned above before triggering your vehicle keys export/event:

-- get the vehicle plate text before locking/unlocking vehicle
local plate = GetVehicleNumberPlateText(ambulance)

-- Trigger your vehicle keys script export/event below

Last updated