2025-03-04 22:24:19 -05:00
|
|
|
local resourceName = "wasabi_carlock"
|
|
|
|
|
local configValue = BridgeClientConfig.VehicleKey
|
|
|
|
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
|
|
|
|
2025-02-06 05:33:26 -05:00
|
|
|
VehicleKey = VehicleKey or {}
|
2025-01-10 16:36:20 -05:00
|
|
|
|
|
|
|
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
2025-02-24 18:23:19 -05:00
|
|
|
if not plate and vehicle then plate = GetVehicleNumberPlateText(vehicle) end
|
2025-01-10 16:36:20 -05:00
|
|
|
exports.wasabi_carlock:GiveKey(plate)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
VehicleKey.RemoveKeys = function(vehicle, plate)
|
2025-02-24 18:23:19 -05:00
|
|
|
if not plate and vehicle then plate = GetVehicleNumberPlateText(vehicle) end
|
2025-01-10 16:36:20 -05:00
|
|
|
exports.wasabi_carlock:RemoveKey(plate)
|
|
|
|
|
end
|