Class FakeClient
  A stub implementation for a client, you can use this to implement fake players for testing purposes
There is no point in using this in production, since players do not yield any additional values over using peds
And the MTA master server list will not include fake clients in the player count
 
  
  
  
  
  
  Assembly: SlipeServer.Server.dll
  Syntax
  
    public class FakeClient : IClient
   
  Constructors
  
    |
    Edit this page
  
  
    View Source
  
  
  FakeClient(Player)
  
  
  Declaration
  
    public FakeClient(Player player)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Player | 
        player | 
         | 
      
    
  
  Properties
  
    |
    Edit this page
  
  
    View Source
  
  
  ConnectionState
  
  
  Declaration
  
    public ClientConnectionState ConnectionState { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  
  
  
  Declaration
  
    public string? Extra { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  IPAddress
  
  
  Declaration
  
    public IPAddress? IPAddress { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  IsConnected
  
  
  Declaration
  
    public bool IsConnected { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Ping
  
  
  Declaration
  
    public uint Ping { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Player
  
  
  Declaration
  
    public Player Player { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Serial
  
  
  Declaration
  
    public string? Serial { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Version
  
  
  Declaration
  
    public string? Version { get; set; }
   
  Property Value
  
  Methods
  
    |
    Edit this page
  
  
    View Source
  
  
  FetchIp()
  
  
  Declaration
  
  
    |
    Edit this page
  
  
    View Source
  
  
  FetchSerial()
  
  
  Declaration
  
    public void FetchSerial()
   
  
    |
    Edit this page
  
  
    View Source
  
  
  ResendModPackets()
  
  
  Declaration
  
    public void ResendModPackets()
   
  
    |
    Edit this page
  
  
    View Source
  
  
  ResendPlayerACInfo()
  
  
  Declaration
  
    public void ResendPlayerACInfo()
   
  
    |
    Edit this page
  
  
    View Source
  
  
  ResetConnectionState()
  
  
  Declaration
  
    public void ResetConnectionState()
   
  
    |
    Edit this page
  
  
    View Source
  
  
  SendPacket(PacketId, byte[], PacketPriority, PacketReliability)
  
  
  Declaration
  
    public void SendPacket(PacketId packetId, byte[] data, PacketPriority priority = PacketPriority.Medium, PacketReliability reliability = PacketReliability.Unreliable)
   
  Parameters
  
  
    |
    Edit this page
  
  
    View Source
  
  
  SendPacket(Packet)
  
  
  Declaration
  
    public void SendPacket(Packet packet)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Packet | 
        packet | 
         | 
      
    
  
  
    |
    Edit this page
  
  
    View Source
  
  
  SetDisconnected()
  
  
  Declaration
  
    public void SetDisconnected()
   
  
    |
    Edit this page
  
  
    View Source
  
  
  SetVersion(ushort)
  
  
  Declaration
  
    public void SetVersion(ushort version)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | ushort | 
        version | 
         | 
      
    
  
  Implements