2025-02-24 18:23:19 -05:00
|
|
|
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "Renewed-Vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
|
|
|
|
|
2025-02-06 05:33:26 -05:00
|
|
|
VehicleKey = VehicleKey or {}
|
2025-02-05 19:45:32 -05:00
|
|
|
|
|
|
|
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
2025-02-24 18:23:19 -05:00
|
|
|
if not plate then plate = GetVehicleNumberPlateText(vehicle) end
|
|
|
|
|
exports['Renewed-Vehiclekeys']:addKey(src, plate)
|
2025-02-05 19:45:32 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
VehicleKey.RemoveKeys = function(src, vehicle, plate)
|
2025-02-24 18:23:19 -05:00
|
|
|
if not plate then plate = GetVehicleNumberPlateText(vehicle) end
|
|
|
|
|
exports['Renewed-Vehiclekeys']:removeKey(src, plate)
|
2025-02-05 19:45:32 -05:00
|
|
|
end
|