daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Jun 21st, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if SERVER then
  2.  
  3.     AddCSLuaFile( "vgui/cs_f4_menu.lua" )
  4.     util.AddNetworkString("f4menu")
  5.  
  6.     hook.Add( "ShowSpare2", "F4MenuHook", function( ply )
  7.         net.Start( "f4menu" )
  8.         net.Send ( ply )
  9.  
  10.  
  11.  
  12.     end)
  13.  
  14. end
  15.  
  16. if CLIENT then
  17.     include( "vgui/cs_f4_menu.lua" )
  18.     net.Receive( "f4menu", function()
  19.         if( !CSF4Menu ) then
  20.             CSF4Menu = vgui.Create( "cs_f4_menu" )
  21.             CSF4Menu:SetVisible ( false )
  22.         end
  23.  
  24.  
  25.         if( CSF4Menu:IsVisible() ) then
  26.             CSF4Menu:SetVisible( false )
  27.             gui.EnableScreenClicker( false )
  28.  
  29.         else
  30.             CSF4Menu:SetVisible( true )
  31.             gui.EnableScreenClicker( true )
  32.  
  33.         end
  34.  
  35.  
  36.     end)
  37. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top