OnPlayerIncomingConnection

From RAGE Multiplayer Wiki
Revision as of 09:48, 28 November 2019 by Spotify (talk | contribs)
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
  • cancel: parameter input should be in CancelEventArgs type

Example

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