GameShark Codes on Retroarch

hello, can i use these GameShark Codes on retroarch+PCSX? https://www.cheatcc.com/psx/codes/top.html

I have tried to make this .cht file but doesn’t seem to work:

cheats = 1

cheat0_desc = "No Enemies" 
cheat0_code = "C0087ADD+0000"
cheat0_enable = true

SOLVED:

cheats = 1

cheat0_desc = "No Enemies" 
cheat0_code = "C0087ADD-0000-30087ADD-0002"
cheat0_enable = true