garrysmod-issues
garrysmod-issues copied to clipboard
NW functions on ServerSide
Hello! I often use SetNWInt/SetNWString and similar NW functions on my server. I don't use them in PlayerInitialSpawn, but I do in a couple of places in PlayerSpawn. After the last Garry's Mod update, I noticed that after logging into the server and trying to type print(debug.getinfo(debug.getregistry().Entity.SetNWInt).short_src) it returns me nothing. Everything works as it should. When I set an NW variable on the server side, it is also set on the client. After a while I see that different elements in the HUD are breaking, stop updating literally. I decided to test and set from the server side SetNWInt("a", 6) , then output it from the client. On the server side it installed, I got it. On the client side it did NOT install. When I try to use print(debug.getinfo()), I get [C] instead of nothing. Could this be a problem with the latest Garry's Mod update or is it a problem with my server/backdoors and such?

The newest update has changed nothing with NW vars. Try doing this with all addons disabled/removed. You should really also be using the net library over NW/DT vars for unpredicted networking.