So I cannot make global variables (they won't work, everyone gets synched out), nor I can use the NetVars hook because the wiki says it's broken it is untested. It scares me and I don't know how to use it properly.
Is it okay if I were to use the server player as the one holding and handling global variables, more like server.var?
And, talking about variables, it would be okay if I declared a local variable outside a hook so it gets initialized with a integer, or everyone would synch out while on a netgame?
I don't have any examples right now to explain what I'm asking, I lost all my Lua projects and after a few days I forgot most of the Lua I learnt for the game.
Is it okay if I were to use the server player as the one holding and handling global variables, more like server.var?
And, talking about variables, it would be okay if I declared a local variable outside a hook so it gets initialized with a integer, or everyone would synch out while on a netgame?
I don't have any examples right now to explain what I'm asking, I lost all my Lua projects and after a few days I forgot most of the Lua I learnt for the game.
Last edited: