socket.sendClient

From GTA Connected
(Redirected from Socket.sendClient)
Jump to navigation Jump to search

Method Server Only All Games Online and Offline

Server 1.0.0

void socket.sendClient(int connection, string data)

Description

The socket.sendClient method is used to send a packet of data to a specific connected ID.

Parameters

Type Name Presence Default Value Description
int connection required n/a The integer ID of the connection to send the data to.
string data required n/a The data to send to the connection.

Returns

Success Returns

Type Description
void This method doesn't return any values on success.

Failure Returns

Type Value
void n/a

Types

This method can only be used on the Socket type.

Notes

  • This is only used if the socket was started in server mode via socket.start.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

Related

Server Related

getClient
getClientFromPlayerElement
getClients

client.administrator
client.despawnPlayer
client.disconnect
client.game
client.gameVersion
client.getData
client.index
client.ip
client.name
client.ping
client.player
client.removeAllData
client.removeData
client.setData