In Grand Theft Auto 4, there are plenty of ways to change up your look, but becoming an actual police officer isn't one of the built-in options. You can't officially dress up as a cop through normal gameplay.
That said, if you're determined to play as law enforcement, a mod might do the trick. Mods can add all sorts of new roles and experiences to the game, so that's your best bet for a police-style playthrough.