ed
This commit is contained in:
parent
510e3ffcf2
commit
f43cf424cf
305 changed files with 34683 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "F_RealCarKeysSystem"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
TriggerServerEvent('F_RealCarKeysSystem:generateVehicleKeys', plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
return true
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,17 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "MrNewbVehicleKeys"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
return exports.MrNewbVehicleKeys:GiveKeysByPlate(plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
return exports.MrNewbVehicleKeys:RemoveKeysByPlate(plate)
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,17 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "Renewed-Vehiclekeys"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
return exports['Renewed-Vehiclekeys']:addKey(plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
return exports['Renewed-Vehiclekeys']:removeKey(plate)
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,19 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
---This will give keys to the specifed vehicle/plate.
|
||||
---@param vehicle number The vehicle entity ID.
|
||||
---@param plate string The plate of the vehicle.
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
return true, Prints.Error("There Is No Vehicle Key System Installed")
|
||||
end
|
||||
|
||||
---This will remove keys from the specifed vehicle/plate.
|
||||
---@param vehicle number The vehicle entity ID.
|
||||
---@param plate string The plate of the vehicle.
|
||||
---@return boolean | nil
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
return true, Prints.Error("There Is No Vehicle Key System Installed")
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,16 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "cd_garage"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
TriggerEvent('cd_garage:AddKeys', plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
return true
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,17 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "jaksams_VehiclesKeys"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
return TriggerServerEvent("vehicles_keys:selfGiveVehicleKeys", plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
return TriggerServerEvent("vehicles_keys:selfRemoveKeys", plate)
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,16 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "mk_vehiclekeys"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not vehicle and not DoesEntityExist(vehicle) then return false end
|
||||
return exports["mk_vehiclekeys"]:AddKey(vehicle)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
if not vehicle and not DoesEntityExist(vehicle) then return false end
|
||||
return exports["mk_vehiclekeys"]:RemoveKey(vehicle)
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,16 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "mono_carkeys"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
TriggerServerEvent('mono_carkeys:CreateKey', plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
TriggerServerEvent('mono_carkeys:DeleteKey', 1, plate)
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,16 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "okokGarage"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
TriggerServerEvent('okokGarage:GiveKeys', plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
return true
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,17 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "qb-vehiclekeys"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
TriggerServerEvent("qb-vehiclekeys:server:AcquireVehicleKeys", plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
TriggerEvent("qb-vehiclekeys:client:RemoveKeys", plate)
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,16 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "qbx_vehiclekeys"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not plate then return false end
|
||||
TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
return true
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,21 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "qs-vehiclekeys"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not vehicle then return false end
|
||||
local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
|
||||
local verifiedPlate = GetVehicleNumberPlateText(vehicle)
|
||||
return exports['qs-vehiclekeys']:GiveKeys(verifiedPlate, model, true)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
if not vehicle then return false end
|
||||
local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
|
||||
local verifiedPlate = GetVehicleNumberPlateText(vehicle)
|
||||
return exports['qs-vehiclekeys']:RemoveKeys(verifiedPlate, model)
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,17 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "t1ger_keys"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not DoesEntityExist(vehicle) then return false end
|
||||
local vehicle_display_name = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
|
||||
return exports['t1ger_keys']:GiveTemporaryKeys(plate, vehicle_display_name, 'some_keys')
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
|
||||
end
|
||||
|
||||
return VehicleKey
|
|
@ -0,0 +1,17 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "wasabi_carlock"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
|
||||
VehicleKey = VehicleKey or {}
|
||||
|
||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||
if not plate and vehicle then plate = GetVehicleNumberPlateText(vehicle) end
|
||||
exports.wasabi_carlock:GiveKey(plate)
|
||||
end
|
||||
|
||||
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||
if not plate and vehicle then plate = GetVehicleNumberPlateText(vehicle) end
|
||||
exports.wasabi_carlock:RemoveKey(plate)
|
||||
end
|
||||
|
||||
return VehicleKey
|
Loading…
Add table
Add a link
Reference in a new issue