ServerGetConsoleVariableT Method |
Retrieve a console variable.
Namespace:
SampSharp.GameMode.SAMP
Assembly:
SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntaxpublic static T GetConsoleVariable<T>(
string varName
)
Parameters
- varName
- Type: SystemString
The server variable to read.
Type Parameters
- T
-
The type to which the variable should be cast. Supported types: Int32,
Boolean, String.
Return Value
Type:
TThe value of the server variable.
Exceptions
See Also