There is a way to edit the line to allow this mod to work even with megamod and restoration project, you may need Notepad++ Or python to edit the code lines though, based on the readme file, the developer tells you how. It's line 8 by default if I remember right. I'll try to change the code myself. I'm currently using the latest versions of megamod, Sfall, and Restoration project. I'll mess around with it, if I can make it work I'll write a detailed guide how to fix it.
Edit: So.. with a lot of time, trial and error. I've found a way to fix this mod for the latest Restoration Project without causing the game to error out and crash to desktop. So basically what you need to do, is replace the arroyo map file under your data folder with the one that the .rar pack comes with for the cheat boy, however. Do not replace Scripts.lst Only add test5.int to your scripts folder. Then open it with notepad, or Notepad++ if you have it and change line 7 where it says (test 5 used for testing scripts.) And change the local vars=8 to 10 then save it. Then you're done!
If you're feeling really creative you can use the mapper as well. I think for me I needed to just create an entirely new cheat boy and click the script button (Red text under the picture of the item in the weapons editor for Fallout 2) Then give it the line 7 test.int script. Then manually replace the bug item in the pot with my newly created cheat boy for Resto Project 2.3.3. with the Fallout 2 mapper.
Now the main problem with the cheatboy since it's so outdated via Restoration Project 2.3.3. is the Illicit drug cabinet doesn't work correctly, it's spawning a shelf into your inventory and doesn't really do anything else sadly. Someone with more experience than me with scripting can definitely change this and add new drugs to the .proto files with the weapons editor and open the test.int file with the Sfall script editor to change the variables to the new drugs, routing them to the new .proto files.
It's a lot of work, but if someone manages to figure this out and upload an updated cheatboy let me know. I'm not taking any credit for the previous author's work. Only wishing to update the script. But it might take me forever since I don't really know scripting language that much. For any other new modders out there with more experience and knowledge than me with scripting. I hope this helps you update cheatboy, I may not even get around to it because I'm scratching my head as to why it keeps giving me shelves and not the new drugs I created.
If anyone however wishes to request the new .proto file and modified test.int file let me know I'll try to find a place to upload the new modified files. This will require the 2.3.3. version of Resto Project.