Documentation

Want to improve the docs? Take a look at scripting-api-data!
Found a bug? jc3mp/bugs is a good place to let us know.

ClientDisconnected

Called when a RemoteClient disconnected from the Server

Parameter

Name Type Description
client RemoteClient the Client that disconnected
reason number disconnect reason (0: closed by user, 1: timeout, 2: kicked)

Example

jcmp.events.Add('ClientDisconnected', (client, reason) => {
  // This event currently lacks an example.
});

Stay informed

By becoming the newest member of our growing forums, we and hundreds of other players will always keep you up to date on everything JC3:MP related.