Files
community_bridge/modules/vehicleKey/qb-vehiclekeys/server/server.lua
T
2025-02-24 18:23:19 -05:00

17 lines
673 B
Lua

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 not plate and vehicle then
plate = GetVehicleNumberPlateText(vehicle)
end
return exports["qb-vehiclekeys"]:GiveKeys(src, plate)
end
VehicleKey.RemoveKeys = function(src, vehicle, plate)
if not plate and vehicle then
plate = GetVehicleNumberPlateText(vehicle)
end
return exports["qb-vehiclekeys"]:RemoveKeys(src, plate)
end