Aligned folder names with table names for most parts. Temporarily removed unfinished ox_core compatibility. Added missing tables to init.lua, updated manifest to reflect new folder names, and incremented version number.
This commit is contained in:
MrNewb committed 2025-01-09 03:55:10 -05:00
1 parent 24431d1bf4
commit 92f6d42555
51 files changed
+225 -161

No files matched your search

@@ -0,0 +1,13 @@
if GetResourceState('MrNewbVehicleKeys') ~= 'started' then return end
VehicleKey = {}
VehicleKey.GiveKeys = function(vehicle, plate)
if not DoesEntityExist(vehicle) then return false end
return exports.MrNewbVehicleKeys:GiveKeys(vehicle)
end
VehicleKey.RemoveKeys = function(vehicle, plate)
if not vehicle and not plate then return false end
if not DoesEntityExist(vehicle) then return exports.MrNewbVehicleKeys:RemoveKeysByPlate(plate) end
return exports.MrNewbVehicleKeys:RemoveKeys(vehicle)
end
@@ -0,0 +1,12 @@
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' then return end
VehicleKey = {}
VehicleKey.GiveKeys = function(vehicle, plate)
if not DoesEntityExist(vehicle) then return false end
return exports['Renewed-Vehiclekeys']:addKey(plate)
end
VehicleKey.RemoveKeys = function(vehicle, plate)
if not DoesEntityExist(vehicle) then return false end
return exports['Renewed-Vehiclekeys']:removeKey(plate)
end
+10
View File
@@ -0,0 +1,10 @@
if GetResourceState('cd_garage') ~= 'started' then return end
VehicleKey = {}
VehicleKey.GiveKeys = function(vehicle, plate)
TriggerEvent('cd_garage:AddKeys', plate)
end
VehicleKey.RemoveKeys = function(vehicle, plate)
end
@@ -0,0 +1,12 @@
if GetResourceState('mk_vehiclekeys') ~= 'started' then return end
VehicleKey = {}
VehicleKey.GiveKeys = function(vehicle, plate)
if not DoesEntityExist(vehicle) then return false end
return exports["mk_vehiclekeys"]:AddKey(vehicle)
end
VehicleKey.RemoveKeys = function(vehicle, plate)
if not DoesEntityExist(vehicle) then return false end
return exports["mk_vehiclekeys"]:RemoveKey(vehicle)
end
+10
View File
@@ -0,0 +1,10 @@
if GetResourceState('okokGarage') ~= 'started' then return end
VehicleKey = {}
VehicleKey.GiveKeys = function(vehicle, plate)
TriggerServerEvent('okokGarage:GiveKeys', plate)
end
VehicleKey.RemoveKeys = function(vehicle, plate)
return true
end
@@ -0,0 +1,11 @@
if GetResourceState('qb-vehiclekeys') ~= 'started' then return end
if GetResourceState('qbx_vehiclekeys') == 'started' then return end
VehicleKey = {}
VehicleKey.GiveKeys = function(vehicle, plate)
TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
end
VehicleKey.RemoveKeys = function(vehicle, plate)
return true
end
@@ -0,0 +1,10 @@
if GetResourceState('qbx_vehiclekeys') ~= 'started' then return end
VehicleKey = {}
VehicleKey.GiveKeys = function(vehicle, plate)
TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
end
VehicleKey.RemoveKeys = function(vehicle, plate)
return true
end
@@ -0,0 +1,12 @@
if GetResourceState('qs-vehiclekeys') ~= 'started' then return end
VehicleKey = {}
VehicleKey.GiveKeys = function(vehicle, plate)
local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
local verifiedPlate = GetVehicleNumberPlateText(vehicle)
exports['qs-vehiclekeys']:GiveKeys(verifiedPlate, model, true)
end
VehicleKey.RemoveKeys = function(vehicle, plate)
return true
end
+12
View File
@@ -0,0 +1,12 @@
if GetResourceState('t1ger_keys') ~= 'started' then return end
VehicleKey = {}
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
@@ -0,0 +1,10 @@
if GetResourceState('wasabi_carlock') ~= 'started' then return end
VehicleKey = {}
VehicleKey.GiveKeys = function(vehicle, plate)
exports.wasabi_carlock:GiveKey(plate)
end
VehicleKey.RemoveKeys = function(vehicle, plate)
exports.wasabi_carlock:RemoveKey(plate)
end