OnClientConnectionRequest: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{Info|Event|Server|1.0}}
{{Info|Event|Server|1.0}}


{{FuncDescription|Early callback of when a client tries to connect to the server. Client is not fully authorized by the server in this state. You can call [[CancelConnectionRequest]] in this event to disconnect the client immediately.}}
{{FuncDescription|Early callback of when a client tries to connect to the server. Client is not fully authorized by the server in this state. You can return '''false''' in this event to disconnect the client immediately.}}


{{FuncSyntax|OnClientConnectionRequest(ip, port)}}
{{FuncSyntax|OnClientConnectionRequest(ip, port)}}

Revision as of 19:15, 6 October 2019

OnClientConnectionRequest

Type: Event
Context: Server
Introduced: v1.0

Description

Early callback of when a client tries to connect to the server. Client is not fully authorized by the server in this state. You can return false in this event to disconnect the client immediately.

Syntax

OnClientConnectionRequest(ip, port)

Parameters

  • ip
    IP address of the client connecting.
  • port
    Port of the client connecting. This is not the server port.

Example

__EDIT_ME__

See also

Player

Vehicle

Game

Package

NPC

Object

Pickup

Text3D

Door