ServerGetConsoleVariableT Method |
Retrieve a console variable.
Namespace:
SampSharp.GameMode.SAMP
Assembly:
SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax public 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