TylerB

Untitled

Apr 8th, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. if SERVER then
  2.     util.AddNetworkedString("menustuff")
  3.    
  4.     net.Receive("menustuff", function(ply)
  5.         ply.inMenu = net.ReadBool()
  6.     end)
  7. else
  8.     function openMenu()
  9.         net.Start("menustuff")
  10.         net.WriteBool(true)
  11.         net.SendToServer()
  12.     end
  13.    
  14.     function closeMenu()
  15.         net.Start("menustuff")
  16.         net.WriteBool(false)
  17.         net.SendToServer()
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment