Garry's Mod Wiki

gui.InternalKeyTyped

  gui.InternalKeyTyped( number code )

Description

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

Arguments

1 number code
ASCII code of symbol, see this chart.

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)