Does FCVAR_REPLICATED work?

I’m doing CreateConVar(“myconsolevar”, 1, {FCVAR_REPLICATED}) on the server, and on the client it ends up being 0. Has anyone else had this problem?

IIRC, you need to create the convar as replicated on both client and server for it to work.

Mmh, I really needed the value replicated on the client before the Lua scripts are run for them. Oh well never mind.

http://www.cubeupload.com/files/77a400convar.png

You could always pop your script which creates the convar into /extensions. That way it will run before all the other client code, updating the convar value.