Class ServerEvents
Inherited Members
Namespace: RageCoop.Server.Scripting
Assembly: RageCoop.Server.dll
Syntax
public class ServerEvents
Events
OnChatMessage
Invoked when a chat message is received.
Declaration
public event EventHandler<ChatEventArgs> OnChatMessage
Event Type
Type | Description |
---|---|
EventHandler<ChatEventArgs> |
OnCommandReceived
Will be invoked from main thread before registered handlers
Declaration
public event EventHandler<OnCommandEventArgs> OnCommandReceived
Event Type
Type | Description |
---|---|
EventHandler<OnCommandEventArgs> |
OnPlayerConnected
Will be invoked when a player is connected, but this player might not be ready yet(client resources not loaded), using OnPlayerReady is recommended.
Declaration
public event EventHandler<Client> OnPlayerConnected
Event Type
Type | Description |
---|---|
EventHandler<Client> |
OnPlayerDisconnected
Invoked when a player disconnected, all method won't be effective in this scope.
Declaration
public event EventHandler<Client> OnPlayerDisconnected
Event Type
Type | Description |
---|---|
EventHandler<Client> |
OnPlayerHandshake
Will be invoked from main thread when a client is attempting to connect, use Deny(String) to deny the connection request.
Declaration
public event EventHandler<HandshakeEventArgs> OnPlayerHandshake
Event Type
Type | Description |
---|---|
EventHandler<HandshakeEventArgs> |
OnPlayerReady
Will be invoked after the client connected and all resources(if any) have been loaded.
Declaration
public event EventHandler<Client> OnPlayerReady
Event Type
Type | Description |
---|---|
EventHandler<Client> |
OnPlayerUpdate
Invoked everytime a player's main ped has been updated
Declaration
public event EventHandler<Client> OnPlayerUpdate
Event Type
Type | Description |
---|---|
EventHandler<Client> |