OnPlayerQuit: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = onPlayerQuit
|side = shared
|type = event
|type = event
|name = onPlayerQuit
|games = iii vc sa iv
|usage = a player leaves the server
|desc = a player leaves the server
|callbackParameters = Event event, Client client, int disconnectType
|arg1 = Client client The client that has disconnected.
|cancellable = false
|arg2 = int disconnectType The disconnect type.
|parameter1 = Client client The client that has disconnected.
|cancel = false
|parameter2 = int disconnectType The disconnect type.
}}
}}

Latest revision as of 20:28, 19 November 2022

Event Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Not Cancellable

Available since Server 1.0.0, Client 1.0.0

onPlayerQuit(Event event, Client client, int disconnectType)

The onPlayerQuit event is invoked when a player leaves the server.

Parameters

1) Event event The event object for this event.
2) Client client The client that has disconnected.
3) int disconnectType The disconnect type.

Attributes

const This event cannot be cancelled.

Notes

There aren't any notes for this event.

Examples

There aren't any examples for this event.

Compatibility

There isn't any compatibility information for this event.

Related

Server Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnPlayerChat
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnPlayerCommand
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnPlayerConnect
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnPlayerJoin
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnPlayerJoined
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnPlayerQuit


Client Related

OnPlayerJoin