This commit is contained in:
Nordi98 2025-07-20 22:10:36 +02:00
parent c6be40ffbd
commit 702bab121c
37 changed files with 2299 additions and 0 deletions

View file

@ -0,0 +1,21 @@
Core.Carlock = {}
Core.Info.Carlock = Cfg.Carlock or nil
function Core.Carlock.GiveKeys(vehicle)
if not Cfg.CarLock then return end
local plate = GetVehicleNumberPlateText(vehicle)
local resource = Cfg.CarLock
if resource == 'qb' then
TriggerEvent("qb-vehiclekeys:client:AddKeys", plate)
elseif resource == 'wasabi' then
exports.wasabi_carlock:GiveKey(plate)
elseif resource == 'mrnewb' then
exports.MrNewbVehicleKeys:GiveKeys(vehicle)
elseif resource == 'quasar' then
exports['qs-vehiclekeys']:GiveKeys(plate, vehicle, true)
elseif resource == 'custom' then
-- insert your car lock sytem here
end
debug('[DEBUG] - GiveKeys:', vehicle, plate)
end