G.SetGlobalBool

From GMod Wiki

Jump to: navigation, search
Function
Syntax SetGlobalBool( Var index, Boolean value )
Where is this used?
Description:
Similiar to the function Entity:SetNetworkedBool - Sets a networked Boolean , 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.SetGlobalBool]G.SetGlobalBool [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets 2 global booleans which you can later get with GetGlobalBool.
Used onNewerServer.png
Code
SetGlobalBool( 666, true )
SetGlobalBool( "Is this game awesome?", false )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox