Class Controls
Represents the player's cotrols, containing properties for easy access to enabling / disabling a player's controls.
Assembly: SlipeServer.Server.dll
Syntax
Constructors
|
Edit this page
View Source
Controls(Player)
Declaration
public Controls(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Fields
|
Edit this page
View Source
AllControls
Declaration
public static string[] AllControls
Field Value
Properties
|
Edit this page
View Source
AccelerateEnabled
Declaration
public bool AccelerateEnabled { get; set; }
Property Value
|
Edit this page
View Source
ActionEnabled
Declaration
public bool ActionEnabled { get; set; }
Property Value
|
Edit this page
View Source
AimWeaponEnabled
Declaration
public bool AimWeaponEnabled { get; set; }
Property Value
|
Edit this page
View Source
BackwardsEnabled
Declaration
public bool BackwardsEnabled { get; set; }
Property Value
|
Edit this page
View Source
BrakeReverseEnabled
Declaration
public bool BrakeReverseEnabled { get; set; }
Property Value
|
Edit this page
View Source
ChangeCameraEnabled
Declaration
public bool ChangeCameraEnabled { get; set; }
Property Value
|
Edit this page
View Source
ChatboxEnabled
Declaration
public bool ChatboxEnabled { get; set; }
Property Value
|
Edit this page
View Source
ConversationNoEnabled
Declaration
public bool ConversationNoEnabled { get; set; }
Property Value
|
Edit this page
View Source
ConversationYesEnabled
Declaration
public bool ConversationYesEnabled { get; set; }
Property Value
|
Edit this page
View Source
CrouchEnabled
Declaration
public bool CrouchEnabled { get; set; }
Property Value
|
Edit this page
View Source
EnterExitEnabled
Declaration
public bool EnterExitEnabled { get; set; }
Property Value
|
Edit this page
View Source
EnterPassengerEnabled
Declaration
public bool EnterPassengerEnabled { get; set; }
Property Value
|
Edit this page
View Source
FireEnabled
Declaration
public bool FireEnabled { get; set; }
Property Value
|
Edit this page
View Source
ForwardsEnabled
Declaration
public bool ForwardsEnabled { get; set; }
Property Value
|
Edit this page
View Source
GroupControlBackEnabled
Declaration
public bool GroupControlBackEnabled { get; set; }
Property Value
|
Edit this page
View Source
GroupControlForwardsEnabled
Declaration
public bool GroupControlForwardsEnabled { get; set; }
Property Value
|
Edit this page
View Source
HandbrakeEnabled
Declaration
public bool HandbrakeEnabled { get; set; }
Property Value
|
Edit this page
View Source
HornEnabled
Declaration
public bool HornEnabled { get; set; }
Property Value
|
Edit this page
View Source
JumpEnabled
Declaration
public bool JumpEnabled { get; set; }
Property Value
|
Edit this page
View Source
LeftEnabled
Declaration
public bool LeftEnabled { get; set; }
Property Value
|
Edit this page
View Source
LookBehindEnabled
Declaration
public bool LookBehindEnabled { get; set; }
Property Value
|
Edit this page
View Source
NextWeaponEnabled
Declaration
public bool NextWeaponEnabled { get; set; }
Property Value
|
Edit this page
View Source
PreviousWeaponEnabled
Declaration
public bool PreviousWeaponEnabled { get; set; }
Property Value
|
Edit this page
View Source
RadarAttachEnabled
Declaration
public bool RadarAttachEnabled { get; set; }
Property Value
|
Edit this page
View Source
RadarEnabled
Declaration
public bool RadarEnabled { get; set; }
Property Value
|
Edit this page
View Source
RadarMoveEastEnabled
Declaration
public bool RadarMoveEastEnabled { get; set; }
Property Value
|
Edit this page
View Source
RadarMoveNorthEnabled
Declaration
public bool RadarMoveNorthEnabled { get; set; }
Property Value
|
Edit this page
View Source
RadarMoveSouthEnabled
Declaration
public bool RadarMoveSouthEnabled { get; set; }
Property Value
|
Edit this page
View Source
RadarMoveWestEnabled
Declaration
public bool RadarMoveWestEnabled { get; set; }
Property Value
|
Edit this page
View Source
RadarZoomInEnabled
Declaration
public bool RadarZoomInEnabled { get; set; }
Property Value
|
Edit this page
View Source
RadarZoomOutEnabled
Declaration
public bool RadarZoomOutEnabled { get; set; }
Property Value
|
Edit this page
View Source
RadioNextEnabled
Declaration
public bool RadioNextEnabled { get; set; }
Property Value
|
Edit this page
View Source
RadioPreviousEnabled
Declaration
public bool RadioPreviousEnabled { get; set; }
Property Value
|
Edit this page
View Source
RadioUserTrackSkipEnabled
Declaration
public bool RadioUserTrackSkipEnabled { get; set; }
Property Value
|
Edit this page
View Source
RightEnabled
Declaration
public bool RightEnabled { get; set; }
Property Value
|
Edit this page
View Source
ScreenshotEnabled
Declaration
public bool ScreenshotEnabled { get; set; }
Property Value
|
Edit this page
View Source
SpecialControlDownEnabled
Declaration
public bool SpecialControlDownEnabled { get; set; }
Property Value
|
Edit this page
View Source
SpecialControlLeftEnabled
Declaration
public bool SpecialControlLeftEnabled { get; set; }
Property Value
|
Edit this page
View Source
SpecialControlRightEnabled
Declaration
public bool SpecialControlRightEnabled { get; set; }
Property Value
|
Edit this page
View Source
SpecialControlUpEnabled
Declaration
public bool SpecialControlUpEnabled { get; set; }
Property Value
|
Edit this page
View Source
SprintEnabled
Declaration
public bool SprintEnabled { get; set; }
Property Value
|
Edit this page
View Source
SteerBackEnabled
Declaration
public bool SteerBackEnabled { get; set; }
Property Value
|
Edit this page
View Source
SteerForwardEnabled
Declaration
public bool SteerForwardEnabled { get; set; }
Property Value
|
Edit this page
View Source
SubMissionEnabled
Declaration
public bool SubMissionEnabled { get; set; }
Property Value
|
Edit this page
View Source
VehicleFireEnabled
Declaration
public bool VehicleFireEnabled { get; set; }
Property Value
|
Edit this page
View Source
VehicleLeftEnabled
Declaration
public bool VehicleLeftEnabled { get; set; }
Property Value
|
Edit this page
View Source
VehicleLookBehindEnabled
Declaration
public bool VehicleLookBehindEnabled { get; set; }
Property Value
|
Edit this page
View Source
VehicleLookLeftEnabled
Declaration
public bool VehicleLookLeftEnabled { get; set; }
Property Value
|
Edit this page
View Source
VehicleLookRightEnabled
Declaration
public bool VehicleLookRightEnabled { get; set; }
Property Value
|
Edit this page
View Source
VehicleMouseLookEnabled
Declaration
public bool VehicleMouseLookEnabled { get; set; }
Property Value
|
Edit this page
View Source
VehicleRightEnabled
Declaration
public bool VehicleRightEnabled { get; set; }
Property Value
|
Edit this page
View Source
VehicleSecondaryFireEnabled
Declaration
public bool VehicleSecondaryFireEnabled { get; set; }
Property Value
|
Edit this page
View Source
WalkEnabled
Declaration
public bool WalkEnabled { get; set; }
Property Value
|
Edit this page
View Source
ZoomInEnabled
Declaration
public bool ZoomInEnabled { get; set; }
Property Value
|
Edit this page
View Source
ZoomOutEnabled
Declaration
public bool ZoomOutEnabled { get; set; }
Property Value
Methods
|
Edit this page
View Source
IsControlStateSet(Control)
Declaration
public bool IsControlStateSet(Control control)
Parameters
Type |
Name |
Description |
Control |
control |
|
Returns
|
Edit this page
View Source
IsControlStateSet(string)
Declaration
public bool IsControlStateSet(string control)
Parameters
Type |
Name |
Description |
string |
control |
|
Returns
|
Edit this page
View Source
SetAllEnabled(bool)
Declaration
public void SetAllEnabled(bool newState)
Parameters
Type |
Name |
Description |
bool |
newState |
|
|
Edit this page
View Source
SetControlState(Control, bool)
Declaration
public void SetControlState(Control control, bool state)
Parameters
|
Edit this page
View Source
SetControlState(string, bool)
Declaration
public void SetControlState(string control, bool state)
Parameters
|
Edit this page
View Source
ToggleAll(bool, bool, bool)
Declaration
public void ToggleAll(bool isEnabled, bool gtaControls = true, bool mtaControls = true)
Parameters
Type |
Name |
Description |
bool |
isEnabled |
|
bool |
gtaControls |
|
bool |
mtaControls |
|
Events
|
Edit this page
View Source
StateChanged
Declaration
public event ElementEventHandler<Player, PlayerControlsChangedArgs>? StateChanged
Event Type