G.Msg

From GMod Wiki

Jump to: navigation, search
Function
Syntax Msg( String message )
Where is this used?
Description:
This function prints text in the console.
Returns: nil
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.Msg]G.Msg [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionOutputs Hello World to console.
Used onNewerShared.png
Code
Msg("Hello World\n")
OutputHello World


DescriptionOutputs the contents of the variable "MyString" to console.
Used onNewerShared.png
Code
local MyString = "pie"
 
Msg( "This is my string: " .. MyString .. "\n")
OutputThis is my string: pie


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox