How to lose the police with a cheat
LAWYERUP (phone 1-999-52993787) lowers your wanted level. Enter it again for each star until the police give up. FUGITIVE does the opposite and adds a star, for when you want a bigger fight.
Running from five stars? Spawn a Buzzard helicopter first, or turn on invincibility so you survive long enough to enter the code.
How to enter a GTA 5 cheat
PC: in Story Mode press ~ (left of 1), type the code and press Enter. PS and Xbox (and PC): open the in-game phone, go to Contacts → Keypad and dial the 1-999 number. Cheats don't work in GTA Online and switch off achievements and trophies until you reload a save.