please see http://www.serbia.travel/useful-info/formalities/visas/
Regarding if a visa needed, it depends on what PASSPORT you hold In most cases. (There may have been some exceptions) The residence permit is for your legal return to residential country.