OnAddIVNetworkEvent: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
(Created page with "{{ScriptItem2 |name = OnAddIVNetworkEvent |side = shared |type = event |games = iv |desc = when a built-in event is sent in GTA IV |arg1 = Client client The client that sent the event |arg2 = Int type The type of event sent |arg3 = String string The name of the client |arg4 = Integer data1 The 1st data arg |arg4 = Integer data2 The 2nd data arg |cancel = true |notes = See the IV events page for a list of event types }}")
(No difference)

Revision as of 02:43, 31 January 2026

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

Available since Server 1.0.0, Client 1.0.0
OnAddIVNetworkEvent(Event event, Client client, Int type, String string, Integer data2)
The OnAddIVNetworkEvent event is invoked when when a built-in event is sent in GTA IV.

Parameters

1) Event event The event object for this event.
2) Client client The client that sent the event.
3) Int type The type of event sent.
4) String string The name of the client.
5) Integer data2 The 2nd data arg.

Attributes

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

Notes

Examples

There aren't any examples for this event.

Compatibility

There isn't any compatibility information for this event.

Related

Server Related

icon-iv.png OnAddIVNetworkEvent
icon-iv.png OnRequestSession


Client Related

icon-iv.png OnAddIVNetworkEvent