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-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
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