Click or drag to resize

ServerGetConsoleVariableT Method

Retrieve a console variable.

Namespace:  SampSharp.GameMode.SAMP
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
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: T
The value of the server variable.
Exceptions
ExceptionCondition
NotSupportedExceptionT is not supported by SA-MP.
See Also