Presumably your actual question is "If you do this can you be sued and/or will doing any of this result in the possiblity of arrest." To which the short answer is yes.
There seems to be unlawful restraint/false imprisonment (they are locked in the taxi and are unable to get out of it when they want to. Then the "prankster" really ups the ante by hauling out the pistol or fake pistol: criminal threatening with a firearm/terrorizing.