server_settings.Int

From GMod Wiki

Revision as of 14:59, 13 September 2009 by UnrealomegaBot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax server_settings.Int( String name, Integer default )
Where is this used?
Description:
Returns the value of the named variable, or default if it doesn't exist.
Returns: Integer
Part of Library: server_settings
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Server settings.Int]Server settings.Int [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionReturns the server's gravity setting, or an unlikely value if it doesn't exist.
Used onNewerServer.png
Code
local gravity = server_settings.Int( "sv_gravity", -1000000 );
OutputN/A


Additional Notes

N/A

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox