2026-03-29 21:41:17 +03:00
|
|
|
-----------------For support, scripts, and more----------------
|
|
|
|
|
--------------- https://discord.gg/wasabiscripts -------------
|
|
|
|
|
---------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
-- Modify this to for how vehicle keys are added to your server (If applicable)
|
|
|
|
|
|
|
|
|
|
-- Add car keys
|
|
|
|
|
function WSB.giveCarKeys(plate, _model, _vehicle)
|
2026-04-03 02:47:59 +03:00
|
|
|
if GetResourceState('wasabi_carlock') == 'started' then
|
|
|
|
|
return exports.wasabi_carlock:GiveKey(plate) -- Leave like this if using wasabi_carlock
|
|
|
|
|
end
|
2026-03-29 21:41:17 +03:00
|
|
|
|
2026-04-03 02:47:59 +03:00
|
|
|
if GetResourceState('qb-vehiclekeys') == 'started' then
|
|
|
|
|
return TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
|
|
|
|
|
end
|
2026-03-29 21:41:17 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function WSB.removeCarKeys(plate, _model, _vehicle)
|
2026-04-03 02:47:59 +03:00
|
|
|
if GetResourceState('wasabi_carlock') == 'started' then
|
|
|
|
|
return exports.wasabi_carlock:RemoveKey(plate)
|
|
|
|
|
end
|
2026-03-29 21:41:17 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
exports('giveCarKeys', WSB.giveCarKeys) -- Export for use in other scripts
|
|
|
|
|
exports('removeCarKeys', WSB.removeCarKeys) -- Export for use in other scripts
|