The elastic force in guitar strings is tensile elastic force. When plucked, the string stretches, creating tension that provides the restoring force for vibration and sound production.
This tension, combined with the string's mass and length, determines the pitch and timbre of the note.