You can modify your gun how you want in IDPA ESP/Co if it meets the width, height, length, and weight. There are some exceptions, compensator, comp barrels, and a few other things. It doesn't need to be factory parts. Look in the rules, go down the list of allowed items in ESP and you'll know if it's legal.