There is no official UFO cheat code in Grand Theft Auto IV. Rockstar never included extraterrestrial content or spawn codes for UFOs in Liberty City.
Some players report UFO-like objects via rare physics glitches (e.g., frozen helicopters, texture corruption) or mods on PC. These are unintended, unstable, and often crash the game.
Liberty City has enough wonders without little green men.