G.tostring

From GMod Wiki

Jump to: navigation, search
Function
Syntax tostring( Var )
Where is this used?
Description:
Attempts to cast the argument as a string.
Returns: String
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.tostring]G.tostring [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionConvert to a string
Used onNewerShared.png
Code
print( type( tostring( 5 ) )
Output
string


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox