Playing an instrument, and especially the guitar, requires a lot of muscle memory, and that’s why it’s so important to practice at least 15-20 minutes a day, to have good and constant results.
In fact, practicing only 2 or 3 times a week does not guarantee success, even if you do it for sessions longer than 1-2 hours.
Constancy and commitment are the keywords if you want to become a guitarist.