ScreenFX

Hello, this is my first post in the LUA Scripting section so be cool with me please.

Anyway, I’m trying to get the screen effects from TacoScript in to Gjail (an other gamemode than TacoScript).
I have been told that the place to change screen effects is in cl_init.
And the person who told me than also sended me this:

**function DrawFX()

local ScreenFX = {}
ScreenFX[ “$pp_colour_addr” ] = 5
ScreenFX[ “$pp_colour_addg” ] = 0
ScreenFX[ “$pp_colour_addb” ] = 10
ScreenFX[ “$pp_colour_brightness” ] = 0
ScreenFX[ “$pp_colour_contrast” ] = 0.40
ScreenFX[ “$pp_colour_colour” ] = 0.40
ScreenFX[ “$pp_colour_mulr” ] = 0
ScreenFX[ “$pp_colour_mulg” ] = 0
ScreenFX[ “$pp_colour_mulb” ] = 5

DrawColorModify( ScreenFX )

end
hook.Add( “RenderScreenspaceEffects”, “Fx”, DrawFX )**

I tried it but instead of the screen turning to something like in Tacoscript (Dark, and with high contrasts) the screen just became black and white or just a failure.
So, do anyone know which code I should put?

Please help me.

[lua]function DrawFX()
– This will give you a reddish tint on your screen
local tab = {}

-- The add<color> modifiers are on a scale of 0 to 1, 1 being full color (change the shade of color)
tab[ "$pp_colour_addr" ] = 0.2 -- Red
tab[ "$pp_colour_addg" ] = 0 -- Green
tab[ "$pp_colour_addb" ] = 0 -- Blue

tab[ "$pp_colour_brightness" ] = 0 -- Brightness is how much white is infused into the color
tab[ "$pp_colour_contrast" ] = 1 -- Contrast will make your screen llighter/darker
tab[ "$pp_colour_colour" ] = 1 -- Color makes the color move towards grayscale

-- The mul<color> modifiers are also 0 - 1, they determine how red/green/blue the colors are
tab[ "$pp_colour_mulr" ] = 0 -- Red
tab[ "$pp_colour_mulg" ] = 1 -- Green
tab[ "$pp_colour_mulb" ] = 1  -- BLue

DrawColorModify( tab )

end[/lua]

Modify how you like.