OnAddIVNetworkEvent: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
 
Line 11: Line 11:
|arg5 = Data2 integer The 2nd data arg
|arg5 = Data2 integer The 2nd data arg
|cancel = true
|cancel = true
|notes = See [[Resources/GTAIV/Events|the IV events page]] for a list of event types
|notes = See [[Resources/GTAIV/Events|the IV events page]] for a list of event types, and [[SyncDamageOnGTAIV|this page for an example on how to sync player damage]]
|ExampleSSJS = addEventHandler("OnAddIVNetworkEvent", (event, fromClient, type, name, data1, data2) => {
    triggerNetworkEvent("iv-event", null, fromClient, type, name, data1, data2); // Use null as second arg to send to everybody
});
}}
}}
2,860

edits

Navigation menu