Advertisement
miguelspastes

Disable Post Processing

Jan 15th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local VIS_MAIN_REF = gui.Reference( "MISC", "GENERAL", "Extra" );
  2.  
  3. local DisablePostProcessing = gui.Checkbox( VIS_MAIN_REF, "lua_disablepostprocess", "Disable Post Processing", 0 );
  4.  
  5. local function PostProcessing()
  6.  
  7. if DisablePostProcessing:GetValue() then
  8. client.SetConVar( "mat_postprocess_enable", 0, true );
  9. else
  10. client.SetConVar( "mat_postprocess_enable", 1, true );
  11. end
  12.  
  13. end
  14.  
  15. callbacks.Register( "Draw", "Disable Post Processing", PostProcessing )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement