Skip to content

Client Scripts: Network object

coyotte508 edited this page Jul 14, 2013 · 1 revision

Scripting/Client/Network

The network object can be obtained in client scripts with client.network(). It's basically what's between the client and the server, and does all the communication with the server.

Here are some of its functions:

  • sendChanMessage(channel, message) Sends a message to all players in channel. This function calls the server's chatMessage events, so you could also execute server commands
  • CPUnban(player_name) Unbans player_name
  • sendPM(player, message) Sends a PM to player. PMs content is message