12 lines
475 B
Lua
12 lines
475 B
Lua
if GetResourceState('qbx_vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "qbx_vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
|
|
|
VehicleKey = VehicleKey or {}
|
|
|
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
|
if not plate and vehicle then plate = GetVehicleNumberPlateText(vehicle) end
|
|
TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
|
|
end
|
|
|
|
VehicleKey.RemoveKeys = function(vehicle, plate)
|
|
return true
|
|
end |