gui/InternalKeyTyped

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
m
Line 14: Line 14:
 
}}
 
}}
 
{{Example
 
{{Example
|Description=Write "Hello" every think.
+
|Description=Writes "Hello" every think.
 
|Code=hook.Add("Think","Example",function()
 
|Code=hook.Add("Think","Example",function()
 
gui.InternalKeyTyped(72)
 
gui.InternalKeyTyped(72)

Revision as of 22:09, 9 January 2016

 gui.InternalKeyTyped( )

Contents

Description

Simulates an ASCII symbol writing. Use to write text in the chat or in VGUI. Doesn't work while the console is open!

Arguments

Examples

Example

Writes "Hello" every think.

hook.Add("Think","Example",function()
	gui.InternalKeyTyped(72)
	gui.InternalKeyTyped(101)
	gui.InternalKeyTyped(108)
	gui.InternalKeyTyped(108)
	gui.InternalKeyTyped(111)
end)


Personal tools
Navigation