They *are* Gameshark codes. :doh:
You can put them in by right-clicking the ROM in Project64 and clicking Edit Cheats (or if you are already ingame in a ROM, just go to System --> Cheats). From there you can right-click and choose Add New and just fill in the blanks and submit.