OnRequestSession

Revision as of 23:01, 7 April 2026 by PerikiyoXD (talk | contribs) (Created page with "{{ScriptItem2 |name = OnRequestSession |side = server |type = event |games = iv |desc = when a client requests a session in GTA IV |arg1 = Client client The client that sent the request |arg2 = Episode integer The episode number requested by the client |cancel = true |ExampleSSJS = addEventHandler("OnRequestSession", (event, client, episode) => { console.log(`${client.name} requested session for episode ${episode}`); }); }}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Event Server Only icon-iv.png Online and Offline Cancellable

Available since Server 1.0.0
OnRequestSession(Event event, Client client, Episode integer)
The OnRequestSession event is invoked when when a client requests a session in GTA IV.

Parameters

1) Event event The event object for this event.
2) Client client The client that sent the request.
3) Episode integer The episode number requested by the client.

Attributes

cancellable This event can be cancelled, by using event.preventDefault().

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.