2025-02-24 18:23:19 -05:00
|
|
|
if GetResourceState('qb-vehiclekeys') ~= 'started' and not GetResourceState("qbx_vehiclekeys") == "started" or (BridgeSharedConfig.VehicleKey ~= "qb-vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
|
|
|
|
|
2025-02-06 05:33:26 -05:00
|
|
|
VehicleKey = VehicleKey or {}
|
2025-02-05 19:45:32 -05:00
|
|
|
|
|
|
|
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
2025-02-24 18:23:19 -05:00
|
|
|
if not plate and vehicle then
|
|
|
|
|
plate = GetVehicleNumberPlateText(vehicle)
|
2025-02-16 09:29:27 -05:00
|
|
|
end
|
2025-02-24 18:23:19 -05:00
|
|
|
return exports["qb-vehiclekeys"]:GiveKeys(src, plate)
|
2025-02-05 19:45:32 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
2025-02-24 18:23:19 -05:00
|
|
|
if not plate and vehicle then
|
|
|
|
|
plate = GetVehicleNumberPlateText(vehicle)
|
2025-02-16 09:29:27 -05:00
|
|
|
end
|
2025-02-24 18:23:19 -05:00
|
|
|
return exports["qb-vehiclekeys"]:RemoveKeys(src, plate)
|
2025-02-05 19:45:32 -05:00
|
|
|
end
|