G.GetConVarNumber

From GMod Wiki

Jump to: navigation, search
Function
Syntax GetConVarNumber( String convar )
Where is this used?
Description:
Returns the value of a specified console-variable.
Returns: Number
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.GetConVarNumber]G.GetConVarNumber [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrints the level time to the console.
Used onNewerShared.png
Code
Msg( "Level will change after " .. tostring(GetConVarNumber("mp_timelimit")) .. " minutes\n")
OutputLevel will change after 30 minutes (providing mp_timelimit is set to 30)


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox