21
edits
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
|callbackParametersCS = Event event, Element element | |callbackParametersCS = Event event, Element element | ||
|cancellable = true | |cancellable = true | ||
|exampleLuaSS = addEventHandler( | |exampleJSSS = addEventHandler('OnElementStreamIn', (event, element, client) => { | ||
messageClient('Element with id ' + element.id + ' has streamed in for ' + client.name, client, COLOUR_BLUE); | |||
}); | |||
|exampleJSCS = addEventHandler('OnElementStreamIn', (event, element) => { | |||
message('Element with id ' + element.id + ' has streamed in.', COLOUR_BLUE); | |||
}); | |||
|exampleLuaSS = addEventHandler('OnElementStreamIn', function(event, element, client) | |||
messageClient('Element with id ' .. element.id .. ' has streamed in for a client.', client, COLOUR_RED) | |||
end) | end) | ||
|exampleLuaCS = addEventHandler( | |exampleLuaCS = addEventHandler('OnElementStreamIn', function(event, element) | ||
message('Element with id ' .. element.id .. ' has streamed in.', COLOUR_BLUE) | |||
end) | end) | ||
}} | }} |
edits