G.SetGlobalString

From GMod Wiki

Jump to: navigation, search
Function
Syntax SetGlobalString( Var index, String value )
Where is this used?
Description:
Similiar to the function Entity:SetNetworkedString - Sets a networked String , but outside of the entity.
Returns: nil
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.SetGlobalString]G.SetGlobalString [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets 2 global strings which you can later get with GetGlobalString.
Used onNewerServer.png
Code
SetGlobalString( 1337, "This is one l33t string!" )
SetGlobalString( "GameDescription", "Shoot all the apples to win!" )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox