This filterscript loops through all component IDs and uses VehicleCanHaveComponent, It also checks their slots to create a list of valid components of the same type for the vehicle. Then, it shows a dialog to the player for tuning the vehicle.
GitHub link: https://github.com/Kingvornex/OPEN.MP-VEHICLE-TUNE-MENU/blob/main/car%20components.pwn