Copy this
if IsButtonBeingPressed(3,0) then
NoTrouble = not NoTrouble
if NoTrouble then
DisablePunishmentSystem(true)
TextPrintString("Disabled Trouble",1,2)
else
DisablePunishmentSystem(False)
TextPrintString("Enabled Trouble",1,2)
end
end
end
and paste to your Function "your code"()