Side Effects
The functionality for side effects is commented out by default. If you would like to enable side effects then follow these steps:
Navigate to
envi-prescriptions/client/client_open.lua
Search for the event handler for
envi-prescriptions:drugEffects
This should be around line 663
Look for the following block of code
-- 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
Remove the double dashes in front of all the lines of code so it looks like the following:
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
Last updated