socket.sendClient: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
m (Mex moved page Socket.sendClient to socket.sendClient)
 
(No difference)

Latest revision as of 15:29, 24 August 2019

Method Server Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.0.0

void socket.sendClient(int connection, string data)

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

Parameters

1) int connection The integer ID of the connection to send the data to.
2) string data The data to send to the connection.

Return

void This method doesn't return a value.

Types

Client Socket

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

icon-iii.png icon-vc.png icon-sa.png icon-iv.png getClient
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getClientFromPlayerElement
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getClients
icon-iii.png icon-vc.png icon-sa.png icon-iv.png localClient

icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.administrator
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.cameraInterior
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.console
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.despawnPlayer
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.disconnect
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.game
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.gameVersion
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.getData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.index
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.ip
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.name
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.ping
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.player
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.removeAllData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.removeData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png client.setData