[lua]
local function PUMPPPTEST()
local tab = {}
tab[ "$pp_colour_addr" ] = 0
tab[ "$pp_colour_addg" ] = 0
tab[ "$pp_colour_addb" ] = 0
tab[ "$pp_colour_brightness" ] = -0.08
tab[ "$pp_colour_contrast" ] = 0.94
tab[ "$pp_colour_colour" ] = 0.72
tab[ "$pp_colour_mulr" ] = 0
tab[ "$pp_colour_mulg" ] = 0
tab[ "$pp_colour_mulb" ] = 0
DrawColorModify( tab )
end
hook.Add( "RenderScreenspaceEffects", "RenderColorModifyPOO", PUMPPPTEST )
[/lua]
I placed this script in my "lua > autorun > client" and it worked but when I placed it on my server's "lua > autorun > client" it didn't work! Where should I place it so everyone in the server gets the effect?
lua/autorun/
At the top of the file, add:
[lua]if SERVER then
AddCSLuaFile( "filename.lua" )
return
end[/lua]
Is that "filename.lua" suspose to be the script file name?
EDIT: Nevermind, Google was my friend. Thanks for the reply!
Sorry, you need to Log In to post a reply to this thread.