Gamemode.PostProcessPermitted

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NamePostProcessPermitted
SyntaxGM:PostProcessPermitted( String element )
DescriptionReturning true allows a post process effect.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.PostProcessPermitted]Gamemode.PostProcessPermitted [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionOnly allows certain post process effects.
Used onNewerClient.png
Code
function GM:PostProcessPermitted(element)
	local AllowedElement = {"bloom",
				"morph"}
 
	return table.HasValue(bannedElement, element)
end
OutputN/A


Additional notes

"bloom"
"color mod"
"morph"
"sharpen"
"material overlay"
"dof"
"sunbeams"
"motion blur"
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox