Generally that depends on the EULA of the game. And you might violate the EULA you signed in the making of your hack, using the hack or even selling it! Let's spin an example:
Let's assume EULA contains this sentence from the Rockstar EULA:
You agree not to, and not to provide guidance or instruction to any other individual or entity on how to:
i [...] ...