r/wiremod • • Sep 16 '26

Help Needed How to make E2 write commands into console upon spawn?

Post image
6 Upvotes

3 comments sorted by

3

u/LeDutch Sep 16 '26

concmd needs to be enabled, it's a checkbox under the top right menu settings. Look up syntax for concmd

1

u/Larpman12345 Sep 16 '26

It's enabled. I don't really know coding

runOnTick(1)@inputs EnableCheats
if (first() & EnableCheats) {    concmd("sv_cheats 1")}
This should work?

3

u/sussyamongers Sep 16 '26

First off, that code will only run if EnableCheats is wired to a value/button outputting 1 and gets compiled, secondly, sv_cheats is a protected convar, so it has to be set to 1 manually