Having a bit of a problem. I’m making a gamemode, and in the init.lua file I have this line:
SetGlobalString( "ta_mode", "capture" )
And on the client, when I do GetGlobalString( “ta_mode” ) it works fine and shows “capture”. However, it does not return that value on the server until I manually set it again. Any ideas why?
] lua_run print(GetGlobalString("ta_mode"))
> print(GetGlobalString("ta_mode"))...
] lua_run_cl print(GetGlobalString("ta_mode"))
capture
Note:
[ul][li]This is confirmed to work for more than one global string (client but not server)
[/li][li]I tried putting it into the InitPostEntity, no luck (thought maybe something was going screwy)
[/li][li]This would be incredibly helpful if someone solved it. Server not being able to read global variables is really really bad, especially for Fretta (can’t tell if we’re InRound so it destroys the game…)
[/li][li]If I set the string via console and then check it from the server it works fine
[/li][/ul]