Cheats disabling themselves

when ever i try to use some cheats like infinite items on dark souls 3 or any of the cheats in stardew valley it will turn on for a second then turn off again any ideas?

Reading the trainer thread, dark souls 3 should be working so it must be either you using a copy of the game that isn’t the latest steam version (downloaded directly from steam) or your anti-virus blocking it. Might be something useful in the log.

i dont use an antivirus so it cant be that, updated stardew this morning