# SendMessageToClient

## Description

This function sends a single message 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.

📌 Please make sure the message is a string! If you want to share more detailed information in this message, turn it into a struct and json\_stringify it and then send that string.

#### Syntax

```
SendMessageToClient(recieverClientId, yourMessage);
```

| Argument           | Description                                                           |
| ------------------ | --------------------------------------------------------------------- |
| `recieverClientId` | The clientId of the recipient of your message. This must be a Number. |
| `yourMessage`      | <p>The message you want to send. <br>Must be a String</p>             |

#### Returns

```
N/A
```

## Where will the receiver get this message?

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