A man found with a knife warned police officers he would have them and their families shot.
John Nicol, 43, also hurled racial, sexual and sectarian insults after his arrest.
Nicol, a prisoner, appeared at Hamilton Sheriff Court this week and admitted unlawful possession of a kitchen knife in Vennacher Street, Shotts, on July 31.