# Side Effects

The functionality for side effects is commented out by default. If you would like to enable side effects then follow these steps:

1. Navigate to `envi-prescriptions/client/client_open.lua`
2. Search for the event handler for `envi-prescriptions:drugEffects`
   1. This should be around line 663
3. Look for the following block of code
   1. ```lua
      -- if math.random(1, 100) <= Config.SideEffectsChance then
      --     if sideEffects == 'vision' then
      --         visionEffect()
      --     elseif sideEffects == 'vision2' then
      --         visionEffect2()
      --     elseif sideEffects == 'blurryvision' then
      --         blurVision()
      --     elseif sideEffects == 'motionblur' then
      --         motionBlur()
      --     elseif sideEffects == 'slow' then
      --         slowEffect()
      --     elseif sideEffects == 'drowsy' then
      --         drowsyEffect()
      --     end
      -- end
      ```
4. Remove the double dashes in front of all the lines of code so it looks like the following:
   1. ```lua
      if math.random(1, 100) <= Config.SideEffectsChance then
          if sideEffects == 'vision' then
              visionEffect()
          elseif sideEffects == 'vision2' then
              visionEffect2()
          elseif sideEffects == 'blurryvision' then
              blurVision()
          elseif sideEffects == 'motionblur' then
              motionBlur()
          elseif sideEffects == 'slow' then
              slowEffect()
          elseif sideEffects == 'drowsy' then
              drowsyEffect()
          end
      end
      ```
