Pre-Owned 2021 BMW X5 M50i

  • VIN: 5UXJU4C09M9G58186
  • Stock: T03657A
Location: Naples, FL
The Hendrick Affordable program offers you benesfits such as: 3 month/3,000 Mile Limited Powertrain Warranty plus 24/7 Roadside Assistance:Gasoline Assistance, Flat Tire Change, Battery Jump-Start, Lock Out Assistance, and Towing. Rental Coverage: up to 3 days at $30 a day not to exceed $90 per occurance. Trip Interuption Service: hotel, transportation, and meal reimburesment. Multi-point vehicle inspection: detailed mechanical inspection that ensures basic drivability and safety. Complimentary CARFAC vehicle history report (Some limitations apply - see dealer for complete details).
Hendrick Affordable
This vehicle is available for transfer from another Hendrick Automotive Group dealership. Transfer costs vary by vehicle location and are not included in the published price. Please contact the dealership for more information.
Hendrick Transfer
carfax icon

Basic Info

  • Exterior:
    Arctic Gray Metallic
  • Drivetrain:
    AWD
  • Interior:
    Ivory White
  • Transmission:
    8-Speed Automatic w/OD
  • Engine:
    Twin Turbo Premium Unleaded V-8 4.4 L/268
  • Fuel Efficiency:
    16 CITY / 22 HWY
  • Mileage:
    94,399

Key Features

  • AWD
  • Adaptive Cruise Control
  • Android Auto
  • Apple CarPlay
  • Backup Camera
  • Blind Spot Monitor
  • Bluetooth
  • Collision Avoidance
  • Cooled Seats
  • Fog Lights
  • Forward Collision Warning
  • Hands-Free Liftgate
  • Heated Seats
  • Interior Accents
  • Keyless Entry
  • Lane Departure Warning
  • Leather Seats
  • M Sport
  • Navigation System
  • Parking Sensors / Assist
  • Power Liftgate
  • Power Seats
  • Push Start
  • Rain Sensing Wipers
  • Rear A/C
  • Rear Heated Seats
  • Remote Start
  • Satellite Radio Ready
  • Side-Impact Air Bags
  • Sunroof / Moonroof
  • Tow Package

Description

This vehicle is available for transfer from another Hendrick Automotive Group dealership. All vehicles may not be physically located at this dealership but may be available for delivery through this location. Transportation charges may apply. Please contact the dealership for more specific information. All vehicles are subject to prior sale. Pricing may not include dealer installed accessories or upfits.

Vehicle Details

Exterior

  • Auto On/Off Projector Beam Led Low/High Beam Auto-Leveling Directionally Adaptive Auto High-Beam Daytime Running Lights Preference Setting Headlamps w/Delay-Off
  • Black Side Windows Trim and Black Front Windshield Trim
  • Body-Colored Door Handles
  • Body-Colored Front Bumper w/Metal-Look Bumper Insert
  • Body-Colored Rear Bumper w/Metal-Look Bumper Insert
  • Cornering Lights
  • Deep Tinted Glass
  • Express Open/Close Sliding And Tilting Glass 1st And 2nd Row Sunroof w/Power Sunshade
  • Fixed Rear Window w/Wiper and Defroster
  • Front Fog Lamps
  • Galvanized Steel/Aluminum/Composite Panels
  • Headlights-Automatic Highbeams
  • LED Brakelights
  • Lip Spoiler
  • Metal-Look Bodyside Insert and Black Wheel Well Trim
  • Metal-Look Grille
  • Metal-Look Power Heated Side Mirrors w/Driver Auto Dimming, Power Folding and Turn Signal Indicator
  • Perimeter/Approach Lights
  • Power Liftgate/Tailgate Rear Cargo Access
  • Speed Sensitive Rain Detecting Variable Intermittent Wipers w/Heated Jets
  • Tailgate/Rear Door Lock Included w/Power Door Locks

Interior

  • 12 Speakers
  • 14-Way Driver Seat
  • 14-Way Passenger Seat
  • 2 LCD Monitors In The Front
  • 2 Seatback Storage Pockets
  • 4 12V DC Power Outlets
  • 40-20-40 Folding Bench Front Facing Fold Forward Seatback Rear Seat
  • Air Filtration
  • Apple CarPlay & Android Auto Compatibility
  • Audio Theft Deterrent
  • BMW Assist eCall
  • BMW TeleServices
  • Cargo Area Concealed Storage
  • Cargo Space Lights
  • Carpet Floor Trim
  • Compass
  • Connected Package Pro
  • ConnectedDrive Services
  • ConnectedDrive Services Selective Service Internet Access
  • Cruise Control w/Steering Wheel Controls
  • Day-Night Auto-Dimming Rearview Mirror
  • Delayed Accessory Power
  • Digital/Analog Appearance
  • Driver / Passenger And Rear Door Bins
  • Driver And Passenger Visor Vanity Mirrors w/Driver And Passenger Illumination
  • Driver Foot Rest
  • Driver Information Center
  • Dual Zone Front And Rear Automatic Air Conditioning
  • Fade-To-Off Interior Lighting
  • FOB Controls -inc: Keyfob Cargo Access, Keyfob Window Activation, Keyfob Sunroof/Convertible Roof Activation and Keyfob Remote Start
  • Front And Rear Map Lights
  • Front Center Armrest and Rear Center Armrest
  • Front Cupholder
  • Front Ventilated Seats
  • Full Carpet Floor Covering -inc: Carpet Front And Rear Floor Mats
  • Full Cloth Headliner
  • Full Floor Console w/Covered Storage and 4 12V DC Power Outlets
  • Garage Door Transmitter
  • Gauges -inc: Speedometer, Odometer, Engine Coolant Temp, Tachometer, Trip Odometer and Trip Computer
  • harman/kardon Surround Sound System
  • Heated Front Seats
  • HVAC -inc: Underseat Ducts, Headliner/Pillar Ducts and Console Ducts
  • Illuminated Locking Glove Box
  • Immobilizer
  • Integrated Navigation System w/Voice Activation
  • Interior Lock Disable
  • Interior Trim -inc: Metal-Look Interior Accents and Leatherette Upholstered Dashboard
  • Leather/Metal-Look Gear Shifter Material
  • Leatherette Door Trim Insert
  • Live Cockpit Pro w/Navigation
  • Memory Settings -inc: Driver And Passenger Seats, Door Mirrors, Steering Wheel and Head Restraints
  • Multi-Contour Seats
  • Outside Temp Gauge
  • Perimeter Alarm
  • Power 1st Row Windows w/Front And Rear 1-Touch Up/Down
  • Power Door Locks w/Autolock Feature
  • Power Fuel Flap Locking Type
  • Power Rear Windows and Fixed 3rd Row Windows
  • Power Tilt/Telescoping Steering Column
  • Power w/Tilt Front Head Restraints and Manual Adjustable Rear Head Restraints
  • Proximity Key For Doors And Push Button Start And Smart Device Proximity Key
  • Radio w/Seek-Scan, Clock, Speed Compensated Volume Control, Aux Audio Input Jack, Steering Wheel Controls, Voice Activation, Radio Data System, External Memory Control and 20 Gb Internal Memory
  • Radio: AM/FM Stereo
  • Real-Time Traffic Display
  • Rear Cupholder
  • Rear HVAC w/Separate Controls
  • Redundant Digital Speedometer
  • Remote Keyless Entry w/Integrated Key Transmitter, 4 Door Curb/Courtesy, Illuminated Entry and Panic Button
  • Remote Releases -Inc: Comfort Access Proximity Cargo Access
  • Roll-Up Cargo Cover
  • Smart Device Integration
  • Sport Leather Steering Wheel w/Auto Tilt-Away
  • Streaming Audio
  • Tracker System
  • Trip Computer
  • Trunk/Hatch Auto-Latch
  • Valet Function
  • Vernasca Leather Upholstery
  • Window Grid Diversity Antenna
  • Wireless Phone Connectivity

Entertainment

  • Radio w/Seek-Scan, Clock, Speed Compensated Volume Control, Aux Audio Input Jack, Steering Wheel Controls, Voice Activation, Radio Data System, External Memory Control and 20 Gb Internal Memory
  • Audio Theft Deterrent
  • Streaming Audio
  • Window Grid Diversity Antenna
  • 12 Speakers
  • ConnectedDrive Services
  • BMW Assist eCall
  • BMW TeleServices
  • Connected Package Pro
  • 2 LCD Monitors In The Front
  • Real-Time Traffic Display

Mechanical

  • 21.9 Gal. Fuel Tank
  • 4-Wheel Disc Brakes w/4-Wheel ABS, Front And Rear Vented Discs, Brake Assist, Hill Descent Control, Hill Hold Control and Electric Parking Brake
  • Automatic w/Driver Control Ride Control Sport Tuned Adaptive Suspension
  • Double Wishbone Front Suspension w/Coil Springs
  • Dual Stainless Steel Exhaust w/Dark Chrome Tailpipe Finisher
  • Electric Power-Assist Speed-Sensing Steering
  • Electro-Mechanical Limited Slip Differential
  • Engine Auto Stop-Start Feature
  • Engine: 4.4L DOHC V8 32V Twin Turbo
  • Front And Rear Anti-Roll Bars
  • Full-Time All-Wheel
  • Gas-Pressurized Shock Absorbers
  • Multi-Link Rear Suspension w/Coil Springs
  • Permanent Locking Hubs
  • Regenerative Alternator
  • Transmission w/Driver Selectable Mode and STEPTRONIC Sequential Shift Control w/Steering Wheel Controls
  • Transmission: 8-Speed Sport Automatic
  • Axle Ratio: 3.154
  • GVWR: 6,559 lbs
  • 985# Maximum Payload

Safety

  • ABS And Driveline Traction Control
  • Active Blind Spot Detection Blind Spot
  • Airbag Occupancy Sensor
  • Back-Up Camera
  • BMW Assist eCall Emergency Sos Capability
  • Collision Mitigation-Front
  • Cross-Traffic Alert Rear
  • Curtain 1st And 2nd Row Airbags
  • Driver And Passenger Knee Airbag
  • Driver Monitoring-Alert
  • Dual Stage Driver And Passenger Front Airbags
  • Dual Stage Driver And Passenger Seat-Mounted Side Airbags
  • Electronic Stability Control (ESC) And Roll Stability Control (RSC)
  • Frontal Collision Warning w/City Collision Mitigation
  • Lane Departure Warning
  • Outboard Front Lap And Shoulder Safety Belts -inc: Rear Center 3 Point and Pretensioners
  • Park Distance Control Front And Rear Parking Sensors
  • Rear Child Safety Locks
  • Side Impact Beams
  • Tire Specific Low Tire Pressure Warning

Tech Specs

  • Vehicle Name: BMW X5
  • Body Style: Sports Activity Vehicle
  • Drivetrain: All Wheel Drive
  • EPA Classification: Standard SUV 4WD
  • Passenger Capacity: 5
  • Base Curb Weight: 5260
  • Fuel Economy Est-Combined: 18
  • EPA Fuel Economy Est - City: 16
  • EPA Fuel Economy Est - Hwy: 22
  • Dead Weight Hitch - Max Trailer Wt.:
  • Dead Weight Hitch - Max Tongue Wt.:
  • Wt Distributing Hitch - Max Trailer Wt.:
  • Wt Distributing Hitch - Max Tongue Wt.:
  • Maximum Trailering Capacity:
  • Engine Order Code:
  • Engine Type: Twin Turbo Premium Unleaded V-8
  • Displacement: 4.4 L/268
  • Fuel System: Gasoline Direct Injection
  • SAE Net Horsepower @ RPM: 523 @ 5500
  • SAE Net Torque @ RPM: 553 @ 1800
  • Trans Order Code: 2TB
  • Trans Type: 8
  • Trans Description Cont.: Automatic w/OD
  • Trans Description Cont. Again:
  • First Gear Ratio (:1): 5.50
  • Second Gear Ratio (:1): 3.52
  • Third Gear Ratio (:1): 2.20
  • Fourth Gear Ratio (:1): 1.72
  • Fifth Gear Ratio (:1): 1.32
  • Sixth Gear Ratio (:1): 1.00
  • Reverse Ratio (:1): 4.00
  • Final Drive Axle Ratio (:1): 3.15
  • Tons/yr of CO2 Emissions @ 15K mi/year: 9.9
  • Suspension Type - Front: Double Wishbone
  • Suspension Type - Rear: Multi-Link
  • Suspension Type - Front (Cont.): Double Wishbone
  • Suspension Type - Rear (Cont.): Multi-Link
  • Front Tire Order Code:
  • Rear Tire Order Code:
  • Spare Tire Order Code:
  • Front Tire Size: P275/45HR20
  • Rear Tire Size: P275/45HR20
  • Spare Tire Size:
  • Front Wheel Size: 20 X 9
  • Rear Wheel Size: 20 X 9
  • Spare Wheel Size:
  • Front Wheel Material: Aluminum
  • Rear Wheel Material: Aluminum
  • Spare Wheel Material:
  • Steering Type: Rack-Pinion
  • Turning Diameter - Curb to Curb: 41.7
  • Brake Type: 4-Wheel Disc
  • Brake ABS System: 4-Wheel
  • Disc - Front (Yes or ): Yes
  • Disc - Rear (Yes or ): Yes
  • Drum - Rear (Yes or ):
  • Fuel Tank Capacity, Approx: 21.9
  • Front Head Room: 40.7
  • Front Leg Room: 39.8
  • Front Shoulder Room: 60
  • Second Head Room: 38.7
  • Second Leg Room: 37.4
  • Second Shoulder Room: 58.1
  • Wheelbase: 117.1
  • Length, Overall: 194.3
  • Width, Max w/o mirrors: 78.9
  • Height, Overall: 68.7
  • Track Width, Front: 67.1
  • Track Width, Rear: 66.9
  • Cargo Volume to Seat 1: 72.3
  • Cargo Volume to Seat 2: 33.9
  • Seventh Gear Ratio (:1): 0.82
  • Eighth Gear Ratio (:1): 0.64
  • Model Group: X5
  • Vehicle Segment: Intermediate Luxury Sport Utility
  • Vehicle Type: Sport Utility
  • Engine Displacement Units: 4.4
  • Engine Camshaft: DOHC
  • Engine Block Type: aluminum
  • Engine Cylinder Count: 8
  • Engine Valve Count: 4
  • Country of Origin: United States BMW Multipurpose Passenger Vehicles

Details

  • 4-Wheel Disc Brakes
  • 8 Cylinder Engine
  • 8-Speed A/T
  • A/C
  • ABS
  • Active Suspension
  • Adaptive Cruise Control
  • Adjustable Steering Wheel
  • Aerial View Display System
  • All Wheel Drive
  • AM/FM Stereo
  • Auto-Dimming Rearview Mirror
  • Automatic Headlights
  • Automatic Parking
  • Auxiliary Audio Input
  • Back-Up Camera
  • Blind Spot Monitor
  • Bluetooth
  • Brake Assist
  • Bucket Seats
  • Child Safety Locks
  • Climate Control
  • Cross-Traffic Alert
  • Cruise Control
  • Cruise Control Steering Assist
  • Daytime Running Lights
  • Driver Adjustable Lumbar
  • Driver Air Bag
  • Driver Illuminated Vanity Mirror
  • Driver Monitoring
  • Driver Vanity Mirror
  • Engine Immobilizer
  • Evasion Assist
  • Floor Mats
  • Fog Lamps
  • Front Collision Mitigation
  • Front Head Air Bag
  • Front Side Air Bag
  • Gasoline Fuel
  • Hands-Free Liftgate
  • Headlights-Auto-Leveling
  • Heads-Up Display
  • Heated Mirrors
  • Heated Seats
  • Heated Steering Wheel
  • Integrated Turn Signal Mirrors
  • Intermittent Wipers
  • Keyless Entry
  • Keyless Start
  • Lane Departure Warning
  • Lane Keeping Assist
  • Leather Seats
  • Leather Steering Wheel
  • LED Headlights
  • Locking/Limited Slip Differential
  • Mirror Memory
  • MP3 Player
  • Multi-Zone A/C
  • Navigation System
  • Panoramic Roof
  • Pass-Through Rear Seat
  • Passenger Adjustable Lumbar
  • Passenger Air Bag
  • Passenger Illuminated Visor Mirror
  • Passenger Vanity Mirror
  • Power Door Locks
  • Power Driver Seat
  • Power Liftgate
  • Power Mirror(s)
  • Power Passenger Seat
  • Power Steering
  • Power Windows
  • Premium Sound
  • Privacy Glass
  • Rain Sensing Wipers
  • Rear A/C
  • Rear Defrost
  • Rear Head Air Bag
  • Rear Parking Aid
  • Rear Spoiler
  • Remote Start
  • Remote Trunk Release
  • Satellite Radio
  • Seat Memory
  • Seat-Massage
  • Security System
  • Smart Device Integration
  • Stability Control
  • Steering Wheel Audio Controls
  • Sunroof / Moonroof
  • Telematics
  • Tire Pressure Monitor
  • Tires - Front Performance
  • Tires - Rear Performance
  • Tow Hitch
  • Traction Control
  • Transmission w/Dual Shift Mode
  • Trip Computer
  • Turbo/Supercharged
  • Universal Garage Door Opener
  • Variable Speed Intermittent Wipers
  • WHEELS: 21 X 9.5 FR & 21 X 10 RR M Y-SPOKE -inc: (Style 741M) Bi-color Increased Top Speed Limiter Tires: 275/40R21 Fr & 315/35R21 Rr Run-Flat Perf
  • M SPORT BRAKES W/RED CALIPERS
  • DRIVING ASSISTANCE PROFESSIONAL PACKAGE -inc: ACC w/stop and go Active Lane Keeping Assistant w/side collision avoidance steering and Traffic Jam Assistant Automatic Lane Change Evasion Assistant and cross-traffic alert front Active Driving Assistant Pro Extended Traffic Jam Assistant For limited access highways
  • FRONT & REAR HEATED SEATS
  • ANTHRACITE ALCANTARA HEADLINER
  • IVORY WHITE EXTENDED MERINO LEATHER UPHOLSTERY
  • EXTENDED SHADOWLINE TRIM
  • EXECUTIVE PACKAGE -inc: Glass Controls Head-Up Display Gesture Control Rear Manual Side Window Shades Panoramic Sky Lounge LED Roof Icon Adaptive LED Headlights w/Laserlight
  • FRONT MASSAGING SEATS
  • HEATED FRONT SEATS W/ARMRESTS & STEERING WHEEL
  • ANTHRACITE-BROWN POPLAR MATTE FINISH WOOD TRIM
  • REAR MANUAL SIDE WINDOW SHADES
  • GLASS CONTROLS
  • ARCTIC GRAY METALLIC
  • LEATHER DASHBOARD
  • PARKING ASSISTANCE PACKAGE -inc: Active Park Distance Control Drive Recorder Surround View w/3D View Rear View Camera Parking Assistant Plus back-up assistance
  • TRAILER HITCH
  • BOWERS & WILKINS DIAMOND SURROUND SOUND SYSTEM
  • Turbocharged
  • Aluminum Wheels
  • Sun/Moonroof
  • Generic Sun/Moonroof
  • Power Folding Mirrors
  • Automatic Highbeams
  • HD Radio
  • Requires Subscription
  • MP3 Capability
  • Hard Disk Drive Media Storage
  • Premium Sound System
  • Bluetooth Connection
  • Heated Front Seat(s)
  • Rear Bench Seat
  • Cargo Shade
  • Remote Engine Start
  • Cooled Front Seat(s)
  • Immobilizer
  • Passenger Air Bag Sensor
  • Knee Air Bag
  • A/T

Why Rick Hendrick Buick GMC Richmond

We have been your hometown Buick, GMC dealership for more than 50 years! We promise to provide you with outstanding service, value, satisfaction and an unsurpassed inventory of automobiles. We practice a no-pressure, high integrity approach to sales that makes your car buying experience a stress-free process. We’re proud to be in Richmond and are ready to help you drive away in your new car. So take a look at our inventory or shoot us a call to schedule your next service appointment.

Hendrick Vehicle Disclaimer:
$899 Dealer Processing Fee included in advertised price.

All prices exclude all taxes, tag, title, registration fees, government fees and electronic filing fee. Out of state buyers are responsible for all taxes and government fees and title/registration fees in the state where the vehicle will be registered. All prices include all manufacturer to dealer incentives, which the dealer retains unless otherwise specifically provided. Dealer not responsible for errors and omissions; all offers subject to change without notice; please confirm listings with dealer.

All vehicles may not be physically located at this dealership but may be available for delivery through this location. Transportation charges may apply. Please contact the dealership for more specific information. All vehicles are subject to prior sale.

Additional Disclaimers:


Well-qualified customers who purchase a new, used, or certified pre-owned vehicle, 4 model years or newer with less than 60K miles between September 1, 2026 and November 2, 2026, and finance through a participating dealer and lender have the option to defer monthly payments for 120 days from contract date. Excludes Hendrick Performance vehicles. Finance charges begin to accrue on the date you sign the Retail Installment Sale Contract at the Annual Percentage Rate (APR) disclosed in the contract. May not be combined with other preferred lender financing offers. 75 months maximum term limit. Equal monthly payments only. Not available to Pennsylvania residents; see your dealer for details. Must take retail delivery by November 2, 2026. See dealer for complete down payment and interest rate options and details. Financing available to qualified buyers. Some exclusions apply. See dealer for complete details. 

*Offer includes all dealer discounts and OEM incentives. Offer does not include tax, tag, title, fees, and other dealer installed options. Discount varies by model and stock number. Example stock #T29262. See dealer for details. Take retail delivery by 11/2/26. **Monthly payment is $16.67 for every $1,000 you finance. Average example down payment is 10.3%. Must finance through GM Financial. Some customers may not qualify. Not available with lease and some other offers. Take new retail delivery by 11/2/26. ***Deferred monthly payments for 92 days. Must finance with GM Financial. Some customers may not qualify. Down payment required at signing, if applicable. Finance charges accrue from date of financing. Not available with lease and some other offers. Take new retail delivery by 11/2/26.

*Offer includes all dealer discounts and OEM incentives. Offer does not include tax, tag, title, fees, and other dealer installed options. Discount varies by model and stock number. Example stock #DT29389. See dealer for details. Take retail delivery by 11/2/26. **Monthly payment is $17.48 for every $1,000 you finance. Average example down payment is 17.6%. Must finance through GM Financial. Some customers may not qualify. Not available with lease and some other offers. Take new retail delivery by 11/2/26. ***Deferred monthly payments for 92 days. Excludes residents of PA. Must finance with GM Financial. Some customers may not qualify. Down payment required at signing, if applicable. Finance charges accrue from date of financing. Not available with lease and some other offers. Take new retail delivery by 11/2/26.

*Offer includes all dealer discounts and OEM incentives. Offer does not include tax, tag, title, fees, and other dealer installed options. Discount varies by model and stock number. Example stock #T29262. See dealer for details. Take retail delivery by 11/2/26. **Monthly payment is $16.67 for every $1,000 you finance. Average example down payment is 10.3%. Must finance through GM Financial. Some customers may not qualify. Not available with lease and some other offers. Take new retail delivery by 11/2/26. ***Deferred monthly payments for 92 days. Must finance with GM Financial. Some customers may not qualify. Down payment required at signing, if applicable. Finance charges accrue from date of financing. Not available with lease and some other offers. Take new retail delivery by 11/2/26.

Connect With Us

Menu

Get Directions

12050 W Broad St, Richmond, VA, 23233
Rick Hendrick Buick GMC Richmond 37.6588, -77.6309.
window.addEventListener("load", function () { // Add "openXtime" class to buttons with Schedule Service text or href ending var links = Array.from(document.querySelectorAll('a')).filter(function(link) { return link.href.endsWith("/schedule-service/") || link.textContent.toLowerCase().includes("schedule service"); }); links.forEach(function(link) { link.classList.add("openXtime"); link.addEventListener("click", function(event) { event.preventDefault(); if (window.xtime && typeof window.xtime.showC8Modal === "function") { window.xtime.showC8Modal(true); } }); }); // Check for URL parameter or path to auto-open service modal function checkAndOpenServiceModal() { var shouldOpen = false; var urlParams = new URLSearchParams(window.location.search); var intsrc = urlParams.get('intsrc'); var currentPath = window.location.pathname; // Check if URL parameter is present if (intsrc === 'tcom:maps:dealervisit:service') { shouldOpen = true; } // OR check if we're on the schedule-service page else if (currentPath.includes('/schedule-service/') || currentPath.includes('/service/schedule-service/')) { shouldOpen = true; } if (shouldOpen) { // Function to attempt opening the modal function attemptOpenModal() { if (window.xtime && typeof window.xtime.showC8Modal === "function") { window.xtime.showC8Modal(true); return true; // Successfully opened } return false; // xtime not ready yet } // Try immediately if (attemptOpenModal()) { return; // Success! } // If not ready, set up retry mechanism var attempts = 0; var maxAttempts = 50; // Try for up to 5 seconds (50 * 100ms) var retryInterval = setInterval(function() { attempts++; if (attemptOpenModal() || attempts >= maxAttempts) { clearInterval(retryInterval); } }, 100); } } // Check URL parameter/path on page load checkAndOpenServiceModal(); });