2025-03-03 01:37:07 -05:00
|
|
|
if GetResourceState('mono_carkeys') ~= 'started' or (BridgeClientConfig.VehicleKey ~= "mono_carkeys" and BridgeClientConfig.VehicleKey ~= "auto") then return end
|
2025-02-07 19:25:33 +00:00
|
|
|
|
2025-02-07 19:42:31 +00:00
|
|
|
VehicleKey = VehicleKey or {}
|
2025-02-07 19:25:33 +00:00
|
|
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
2025-03-03 19:09:18 -05:00
|
|
|
if not plate then return false end
|
2025-02-07 19:25:33 +00:00
|
|
|
TriggerServerEvent('mono_carkeys:CreateKey', plate)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
VehicleKey.RemoveKeys = function(vehicle, plate)
|
2025-03-03 19:09:18 -05:00
|
|
|
if not plate then return false end
|
2025-02-07 19:25:33 +00:00
|
|
|
TriggerServerEvent('mono_carkeys:DeleteKey', 1, plate)
|
|
|
|
|
end
|