On older S&W's the frame lug was a separate piece of round metal riveted to the frame at the bottom rear corner of the cylinder "window".
The gun must be disassembled and a new piece installed and very carefully riveted with a round nose punch to lock it in place, then usually, some additional shaping of the outer surface is often necessary to fit it to a specific gun.
On newer S&W's the frame lug is a long section of the frame behind the cylinder window and is made as part of the frame forging. It's not a separate piece and cannot be replaced.
If your cylinder is falling out, either the lug is missing, in which case there'll be a hole in the frame where it was, or the lug has been altered or badly worn, OR your cylinder assembly is so badly sprung that the cylinder will fall past the lug.