# SendEventToClient

A new and improved version of Send Message to Client !

An Event is nothing but an eventName combined with a messageStruct. This opens more possibilities than just a simple SendMessageToClient()

## Description

This function sends a single Event  to a particular client in your server. This is very useful in some games where you only want to send one signal at a time.

The Receiver’s client id should be the integer client id of the client you want to send a message to.

#### Syntax

```
SendEventToClient(recieverClientId,eventName, yourMessageStruct)
```

| Argument           | Description                                                                                                             |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------- |
| `recieverClientId` | The clientId of the recipient of your message. This must be a Number.                                                   |
| `eventName`        | <p>The name of this event.<br>Must be a String</p>                                                                      |
| `messageStruct`    | <p>The message you want to send. Add key-value pairs of the information you want this to carry.<br>Must be a Struct</p> |

#### Returns

```
N/A
```

## Where will the receiver get this message?

After a successful event send on your server, the callback function **callback\_ReceivedEvent()** is called on the receiver's end.
