If you are interested in Research Council funding (ESRC, AHRC etc.) then yes, you would need to have lived in the UK for three years prior to your application and have an EU country citizenship.
However - many other scholarships do not have a residency requirement and in fact many universities try to balance out the Research council funding offering their own scholarships that are usually free of a residency requirement.
Hope this helps!