Some maps like dota bug the function main part when it have new locals, so you have to remove the local from JJCP and put in a function like
(this in endglobals)
Code:
function waifu takes nothing returns nothing
local integer zzz=0
loop
exitwhen zzz>11
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(zzz),"-",false)
set zzz=zzz+1
endloop
call TriggerAddAction(ICHEAT,function CheatUse)
call TriggerAddCondition(CHEATS,Condition(function Cheatz0r))
call TriggerAddAction(CHEATS,function DirectCheat)
call UnitId2Stringz()
call InitS2RAW()
endfunction
Then you go on function main and put this
Code:
call ExecuteFunc("waifu")