OnPlayerIncomingConnection

From RAGE Multiplayer Wiki
Revision as of 13:59, 8 November 2020 by Bonus (talk | contribs) (Add missing parameter)
This feature is currently unavailable in the current branch of Rage Multiplayer. This feature will be available in 1.0.

This event is triggered when an player establishes a connection with the server before loading the resources.


C# Syntax

[ServerEvent(Event.IncomingConnection)]

Parameters

  • ip: parameter input should be in string type
  • serial: parameter input should be in string type
  • rgscName: parameter input should be in string type
  • rgscId: parameter input should be in ulong type
  • gameType: parameter input should be in GameTypes type
  • cancel: parameter input should be in CancelEventArgs type

Example

[ServerEvent(Event.IncomingConnection)]
public void OnIncomingConnection(string ip, string serial, string rgscName, ulong rgscId, GameTypes gameType, CancelEventArgs cancel)
{
	NAPI.Util.ConsoleOutput($"Connecting: {rgscName} - {ip} - {serial} - {rgscId} - {gameType}");
}