There is no built-in cheat code. What players use instead is a third-party trainer, typically found by searching for "Far Cry 3 trainer," which patches health and similar values while the game runs.
Two cautions. Trainers can trigger anti-cheat or crash a patched game, and download sites bundling them are a common malware vector — stick to well-established sources and scan anything you fetch. In a single-player game the risk is to your system and save, not to other players.