While I’m currently at college, I’m unable to test this code out myself. I’m just practicing on something very basic. When a player joins the game, it’ll assign a varible on the player and send a message to the client.
// Server util.AddNetworkString("Client_openLobby") function GM:PlayerSpawn( ply ) ply.inLobby = true net.Start("Client_openLobby") net.Send( ply ) end
But the question I have is, when I store a variable on the player ‘ply.inLobby’ if I wanted to use that clientside would I have to ‘WriteBool()’ to the client or can I just do ‘print( LocalPlayer().inLobby )’.
I appreciate your help Facepunch, hopefully someone can help. Thank you!