I am only really familiar with Arizona and California, and in neither of those states does ANYONE carry a weapon into court, with the exception of the deputies providing security for prisoners. The County Attorney's office in Pinal County, AZ has a gun safe unit where officers lock up their weapons before going into court to testify. You just don't cxarry a live weapon into court nowadays.
In most states a PI would have to abide by the same rules as a CWP holder. Rule of thumb, a PI is just a PI and not LE and a PI is just a CWP holder with a business card that has PI on it.:smile: