prepping for version update

This commit is contained in:
MrNewb committed 2025-02-24 18:23:19 -05:00
1 parent 06fe2918b7
commit 6efabfbbd8
29 files changed
+105 -53

No files matched your search

@@ -1,15 +1,17 @@
if GetResourceState('qb-vehiclekeys') ~= 'started' then return end
if GetResourceState('qbx_vehiclekeys') == 'started' then return end
if GetResourceState('qb-vehiclekeys') ~= 'started' and not GetResourceState("qbx_vehiclekeys") == "started" or (BridgeSharedConfig.VehicleKey ~= "qb-vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
VehicleKey = VehicleKey or {}
VehicleKey.GiveKeys = function(src, vehicle, plate)
if plate then
return exports["qb-vehiclekeys"]:GiveKeys(src, plate)
if not plate and vehicle then
plate = GetVehicleNumberPlateText(vehicle)
end
return exports["qb-vehiclekeys"]:GiveKeys(src, plate)
end
VehicleKey.RemoveKeys = function(src, vehicle, plate)
if plate then
return exports["qb-vehiclekeys"]:RemoveKeys(src, plate)
if not plate and vehicle then
plate = GetVehicleNumberPlateText(vehicle)
end
return exports["qb-vehiclekeys"]:RemoveKeys(src, plate)
end