To play as Sonic in GTA, you'd need to install a mod on the PC version of the game. Console versions don't support this kind of custom character mod, so a PC and the appropriate mod are the way to go.