From 266697b1fe0dc076be10566da0e628cf7c1689c8 Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Sun, 26 Oct 2025 15:20:31 -0400 Subject: [PATCH] Remove all vehicle key client modules Deleted all client-side vehicle key integration modules from both 'vehicleKey' and 'vehiclekey' directories. This change likely reflects a refactor, migration, or deprecation of the vehicle key system integrations. --- .../F_RealCarKeysSystem/client/client.lua | 38 ---------------- .../MrNewbVehicleKeys/client/client.lua | 41 ------------------ .../Renewed-Vehiclekeys/client/client.lua | 41 ------------------ modules/vehicleKey/_default/client/client.lua | 24 ----------- .../vehicleKey/cd_garage/client/client.lua | 34 --------------- modules/vehicleKey/jacksam/client.lua | 41 ------------------ modules/vehicleKey/mVehicle/client/client.lua | 30 ------------- .../mk_vehiclekeys/client/client.lua | 33 -------------- .../vehicleKey/okokGarage/client/client.lua | 42 ------------------ .../qb-vehiclekeys/client/client.lua | 41 ------------------ .../qbx_vehiclekeys/client/client.lua | 41 ------------------ .../qs-vehiclekeys/client/client.lua | 43 ------------------- .../vehicleKey/t1ger_keys/client/client.lua | 35 --------------- .../wasabi_carlock/client/client.lua | 41 ------------------ modules/vehiclekey/_default/client/client.lua | 24 ----------- .../vehiclekey/cd_garage/client/client.lua | 34 --------------- .../f_realcarkeyssystem/client/client.lua | 38 ---------------- modules/vehiclekey/jacksam/client.lua | 41 ------------------ modules/vehiclekey/mVehicle/client/client.lua | 30 ------------- .../mk_vehiclekeys/client/client.lua | 33 -------------- .../mrnewbvehiclekeys/client/client.lua | 41 ------------------ .../vehiclekey/okokGarage/client/client.lua | 42 ------------------ .../qb-vehiclekeys/client/client.lua | 41 ------------------ .../qbx_vehiclekeys/client/client.lua | 41 ------------------ .../qs-vehiclekeys/client/client.lua | 43 ------------------- .../renewed-vehiclekeys/client/client.lua | 41 ------------------ .../vehiclekey/t1ger_keys/client/client.lua | 35 --------------- .../wasabi_carlock/client/client.lua | 41 ------------------ 28 files changed, 1050 deletions(-) delete mode 100644 modules/vehicleKey/F_RealCarKeysSystem/client/client.lua delete mode 100644 modules/vehicleKey/MrNewbVehicleKeys/client/client.lua delete mode 100644 modules/vehicleKey/Renewed-Vehiclekeys/client/client.lua delete mode 100644 modules/vehicleKey/_default/client/client.lua delete mode 100644 modules/vehicleKey/cd_garage/client/client.lua delete mode 100644 modules/vehicleKey/jacksam/client.lua delete mode 100644 modules/vehicleKey/mVehicle/client/client.lua delete mode 100644 modules/vehicleKey/mk_vehiclekeys/client/client.lua delete mode 100644 modules/vehicleKey/okokGarage/client/client.lua delete mode 100644 modules/vehicleKey/qb-vehiclekeys/client/client.lua delete mode 100644 modules/vehicleKey/qbx_vehiclekeys/client/client.lua delete mode 100644 modules/vehicleKey/qs-vehiclekeys/client/client.lua delete mode 100644 modules/vehicleKey/t1ger_keys/client/client.lua delete mode 100644 modules/vehicleKey/wasabi_carlock/client/client.lua delete mode 100644 modules/vehiclekey/_default/client/client.lua delete mode 100644 modules/vehiclekey/cd_garage/client/client.lua delete mode 100644 modules/vehiclekey/f_realcarkeyssystem/client/client.lua delete mode 100644 modules/vehiclekey/jacksam/client.lua delete mode 100644 modules/vehiclekey/mVehicle/client/client.lua delete mode 100644 modules/vehiclekey/mk_vehiclekeys/client/client.lua delete mode 100644 modules/vehiclekey/mrnewbvehiclekeys/client/client.lua delete mode 100644 modules/vehiclekey/okokGarage/client/client.lua delete mode 100644 modules/vehiclekey/qb-vehiclekeys/client/client.lua delete mode 100644 modules/vehiclekey/qbx_vehiclekeys/client/client.lua delete mode 100644 modules/vehiclekey/qs-vehiclekeys/client/client.lua delete mode 100644 modules/vehiclekey/renewed-vehiclekeys/client/client.lua delete mode 100644 modules/vehiclekey/t1ger_keys/client/client.lua delete mode 100644 modules/vehiclekey/wasabi_carlock/client/client.lua diff --git a/modules/vehicleKey/F_RealCarKeysSystem/client/client.lua b/modules/vehicleKey/F_RealCarKeysSystem/client/client.lua deleted file mode 100644 index 2861a9d..0000000 --- a/modules/vehicleKey/F_RealCarKeysSystem/client/client.lua +++ /dev/null @@ -1,38 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "F_RealCarKeysSystem" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - if not plate then plate = GetVehicleNumberPlateText(vehicle) end - - TriggerServerEvent('F_RealCarKeysSystem:generateVehicleKeys', plate) -end - --- TODO: Test, documentation of the script is missing - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then plate = GetVehicleNumberPlateText(vehicle) end - - TriggerServerEvent('F_RealCarKeysSystem:removeVehicleKeysByPlate', plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/MrNewbVehicleKeys/client/client.lua b/modules/vehicleKey/MrNewbVehicleKeys/client/client.lua deleted file mode 100644 index 6f6b8fa..0000000 --- a/modules/vehicleKey/MrNewbVehicleKeys/client/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "MrNewbVehicleKeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - return exports.MrNewbVehicleKeys:GiveKeysByPlate(plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - return exports.MrNewbVehicleKeys:RemoveKeysByPlate(plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/Renewed-Vehiclekeys/client/client.lua b/modules/vehicleKey/Renewed-Vehiclekeys/client/client.lua deleted file mode 100644 index 77d75ec..0000000 --- a/modules/vehicleKey/Renewed-Vehiclekeys/client/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "Renewed-Vehiclekeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - return exports['Renewed-Vehiclekeys']:addKey(plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - return exports['Renewed-Vehiclekeys']:removeKey(plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/_default/client/client.lua b/modules/vehicleKey/_default/client/client.lua deleted file mode 100644 index 7ab8d33..0000000 --- a/modules/vehicleKey/_default/client/client.lua +++ /dev/null @@ -1,24 +0,0 @@ ----@diagnostic disable: duplicate-set-field -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - print("There is no compatible vehicle key resource.") -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - print("There is no compatible vehicle key resource.") -end - -VehicleKey.GetResourceName = function() - return "default" -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/cd_garage/client/client.lua b/modules/vehicleKey/cd_garage/client/client.lua deleted file mode 100644 index 56f5313..0000000 --- a/modules/vehicleKey/cd_garage/client/client.lua +++ /dev/null @@ -1,34 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "cd_garage" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerEvent('cd_garage:AddKeys', plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - print("cd_garage doesnt support removing keys.") -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/jacksam/client.lua b/modules/vehicleKey/jacksam/client.lua deleted file mode 100644 index f1f1b32..0000000 --- a/modules/vehicleKey/jacksam/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "jaksams_VehiclesKeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerServerEvent("vehicles_keys:selfGiveVehicleKeys", plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerServerEvent("vehicles_keys:selfRemoveKeys", plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/mVehicle/client/client.lua b/modules/vehicleKey/mVehicle/client/client.lua deleted file mode 100644 index e89acc9..0000000 --- a/modules/vehicleKey/mVehicle/client/client.lua +++ /dev/null @@ -1,30 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "mVehicle" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - exports.mVehicle:AddTemporalVehicleClient(vehicle) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - print("mVehicle doesnt support removing keys.") -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/mk_vehiclekeys/client/client.lua b/modules/vehicleKey/mk_vehiclekeys/client/client.lua deleted file mode 100644 index e70ebca..0000000 --- a/modules/vehicleKey/mk_vehiclekeys/client/client.lua +++ /dev/null @@ -1,33 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "mk_vehiclekeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - exports["mk_vehiclekeys"]:AddKey(vehicle) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - exports["mk_vehiclekeys"]:RemoveKey(vehicle) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/okokGarage/client/client.lua b/modules/vehicleKey/okokGarage/client/client.lua deleted file mode 100644 index 84e09d8..0000000 --- a/modules/vehicleKey/okokGarage/client/client.lua +++ /dev/null @@ -1,42 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "okokGarage" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerServerEvent('okokGarage:GiveKeys', plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - local source = GetPlayerServerId(PlayerId()) - TriggerServerEvent("okokGarage:RemoveKeys", plate, source) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/qb-vehiclekeys/client/client.lua b/modules/vehicleKey/qb-vehiclekeys/client/client.lua deleted file mode 100644 index 52f2fbd..0000000 --- a/modules/vehicleKey/qb-vehiclekeys/client/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "qb-vehiclekeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerServerEvent("qb-vehiclekeys:server:AcquireVehicleKeys", plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerEvent("qb-vehiclekeys:client:RemoveKeys", plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/qbx_vehiclekeys/client/client.lua b/modules/vehicleKey/qbx_vehiclekeys/client/client.lua deleted file mode 100644 index 2735ab8..0000000 --- a/modules/vehicleKey/qbx_vehiclekeys/client/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "qbx_vehiclekeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerServerEvent("qb-vehiclekeys:server:AcquireVehicleKeys", plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerEvent("qb-vehiclekeys:client:RemoveKeys", plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/qs-vehiclekeys/client/client.lua b/modules/vehicleKey/qs-vehiclekeys/client/client.lua deleted file mode 100644 index 36708d8..0000000 --- a/modules/vehicleKey/qs-vehiclekeys/client/client.lua +++ /dev/null @@ -1,43 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "qs-vehiclekeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle)) - return exports['qs-vehiclekeys']:GiveKeys(plate, model, true) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle)) - return exports['qs-vehiclekeys']:RemoveKeys(plate, model) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/t1ger_keys/client/client.lua b/modules/vehicleKey/t1ger_keys/client/client.lua deleted file mode 100644 index 7ad97c5..0000000 --- a/modules/vehicleKey/t1ger_keys/client/client.lua +++ /dev/null @@ -1,35 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "t1ger_keys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle)) - return exports['t1ger_keys']:GiveTemporaryKeys(plate, model, '') -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - print("t1ger_keys doesnt support removing keys.") -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehicleKey/wasabi_carlock/client/client.lua b/modules/vehicleKey/wasabi_carlock/client/client.lua deleted file mode 100644 index 6b3a49c..0000000 --- a/modules/vehicleKey/wasabi_carlock/client/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "wasabi_carlock" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - exports.wasabi_carlock:GiveKey(plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - exports.wasabi_carlock:RemoveKey(plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/_default/client/client.lua b/modules/vehiclekey/_default/client/client.lua deleted file mode 100644 index 7ab8d33..0000000 --- a/modules/vehiclekey/_default/client/client.lua +++ /dev/null @@ -1,24 +0,0 @@ ----@diagnostic disable: duplicate-set-field -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - print("There is no compatible vehicle key resource.") -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - print("There is no compatible vehicle key resource.") -end - -VehicleKey.GetResourceName = function() - return "default" -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/cd_garage/client/client.lua b/modules/vehiclekey/cd_garage/client/client.lua deleted file mode 100644 index 56f5313..0000000 --- a/modules/vehiclekey/cd_garage/client/client.lua +++ /dev/null @@ -1,34 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "cd_garage" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerEvent('cd_garage:AddKeys', plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - print("cd_garage doesnt support removing keys.") -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/f_realcarkeyssystem/client/client.lua b/modules/vehiclekey/f_realcarkeyssystem/client/client.lua deleted file mode 100644 index 2861a9d..0000000 --- a/modules/vehiclekey/f_realcarkeyssystem/client/client.lua +++ /dev/null @@ -1,38 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "F_RealCarKeysSystem" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - if not plate then plate = GetVehicleNumberPlateText(vehicle) end - - TriggerServerEvent('F_RealCarKeysSystem:generateVehicleKeys', plate) -end - --- TODO: Test, documentation of the script is missing - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then plate = GetVehicleNumberPlateText(vehicle) end - - TriggerServerEvent('F_RealCarKeysSystem:removeVehicleKeysByPlate', plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/jacksam/client.lua b/modules/vehiclekey/jacksam/client.lua deleted file mode 100644 index f1f1b32..0000000 --- a/modules/vehiclekey/jacksam/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "jaksams_VehiclesKeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerServerEvent("vehicles_keys:selfGiveVehicleKeys", plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerServerEvent("vehicles_keys:selfRemoveKeys", plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/mVehicle/client/client.lua b/modules/vehiclekey/mVehicle/client/client.lua deleted file mode 100644 index e89acc9..0000000 --- a/modules/vehiclekey/mVehicle/client/client.lua +++ /dev/null @@ -1,30 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "mVehicle" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - exports.mVehicle:AddTemporalVehicleClient(vehicle) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - print("mVehicle doesnt support removing keys.") -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/mk_vehiclekeys/client/client.lua b/modules/vehiclekey/mk_vehiclekeys/client/client.lua deleted file mode 100644 index e70ebca..0000000 --- a/modules/vehiclekey/mk_vehiclekeys/client/client.lua +++ /dev/null @@ -1,33 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "mk_vehiclekeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - exports["mk_vehiclekeys"]:AddKey(vehicle) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - exports["mk_vehiclekeys"]:RemoveKey(vehicle) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/mrnewbvehiclekeys/client/client.lua b/modules/vehiclekey/mrnewbvehiclekeys/client/client.lua deleted file mode 100644 index 6f6b8fa..0000000 --- a/modules/vehiclekey/mrnewbvehiclekeys/client/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "MrNewbVehicleKeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - return exports.MrNewbVehicleKeys:GiveKeysByPlate(plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - return exports.MrNewbVehicleKeys:RemoveKeysByPlate(plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/okokGarage/client/client.lua b/modules/vehiclekey/okokGarage/client/client.lua deleted file mode 100644 index 84e09d8..0000000 --- a/modules/vehiclekey/okokGarage/client/client.lua +++ /dev/null @@ -1,42 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "okokGarage" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerServerEvent('okokGarage:GiveKeys', plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - local source = GetPlayerServerId(PlayerId()) - TriggerServerEvent("okokGarage:RemoveKeys", plate, source) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/qb-vehiclekeys/client/client.lua b/modules/vehiclekey/qb-vehiclekeys/client/client.lua deleted file mode 100644 index 52f2fbd..0000000 --- a/modules/vehiclekey/qb-vehiclekeys/client/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "qb-vehiclekeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerServerEvent("qb-vehiclekeys:server:AcquireVehicleKeys", plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerEvent("qb-vehiclekeys:client:RemoveKeys", plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/qbx_vehiclekeys/client/client.lua b/modules/vehiclekey/qbx_vehiclekeys/client/client.lua deleted file mode 100644 index 2735ab8..0000000 --- a/modules/vehiclekey/qbx_vehiclekeys/client/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "qbx_vehiclekeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerServerEvent("qb-vehiclekeys:server:AcquireVehicleKeys", plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - TriggerEvent("qb-vehiclekeys:client:RemoveKeys", plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/qs-vehiclekeys/client/client.lua b/modules/vehiclekey/qs-vehiclekeys/client/client.lua deleted file mode 100644 index 36708d8..0000000 --- a/modules/vehiclekey/qs-vehiclekeys/client/client.lua +++ /dev/null @@ -1,43 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "qs-vehiclekeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle)) - return exports['qs-vehiclekeys']:GiveKeys(plate, model, true) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle)) - return exports['qs-vehiclekeys']:RemoveKeys(plate, model) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/renewed-vehiclekeys/client/client.lua b/modules/vehiclekey/renewed-vehiclekeys/client/client.lua deleted file mode 100644 index 77d75ec..0000000 --- a/modules/vehiclekey/renewed-vehiclekeys/client/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "Renewed-Vehiclekeys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - return exports['Renewed-Vehiclekeys']:addKey(plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - return exports['Renewed-Vehiclekeys']:removeKey(plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/t1ger_keys/client/client.lua b/modules/vehiclekey/t1ger_keys/client/client.lua deleted file mode 100644 index 7ad97c5..0000000 --- a/modules/vehiclekey/t1ger_keys/client/client.lua +++ /dev/null @@ -1,35 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "t1ger_keys" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle)) - return exports['t1ger_keys']:GiveTemporaryKeys(plate, model, '') -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - print("t1ger_keys doesnt support removing keys.") -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file diff --git a/modules/vehiclekey/wasabi_carlock/client/client.lua b/modules/vehiclekey/wasabi_carlock/client/client.lua deleted file mode 100644 index 6b3a49c..0000000 --- a/modules/vehiclekey/wasabi_carlock/client/client.lua +++ /dev/null @@ -1,41 +0,0 @@ ----@diagnostic disable: duplicate-set-field -local resourceName = "wasabi_carlock" -if GetResourceState(resourceName) == 'missing' then return end - -VehicleKey = VehicleKey or {} - ----Gives the player (self) the keys of the specified vehicle. ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.GiveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - exports.wasabi_carlock:GiveKey(plate) -end - ----Removes the keys of the specified vehicle from the player (self). ----@param vehicle number The vehicle entity handle. ----@param plate? string The plate of the vehicle. ----@return nil -VehicleKey.RemoveKeys = function(vehicle, plate) - assert(vehicle, "vehicle is nil") - assert(DoesEntityExist(vehicle), "vehicle does not exist") - - if not plate then - plate = GetVehicleNumberPlateText(vehicle) - end - - exports.wasabi_carlock:RemoveKey(plate) -end - -VehicleKey.GetResourceName = function() - return resourceName -end - -return VehicleKey \ No newline at end of file