OnElementStreamIn: Difference between revisions

Jump to navigation Jump to search
no edit summary
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("OnElementStreamIn", function(event, element, client)
|exampleJSSS = addEventHandler('OnElementStreamIn', (event, element, client) => {
outputChatBox("Element with id " .. element.id .. " has streamed in for a client.", COLOUR_RED)
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("OnElementStreamIn", function(event, element)
|exampleLuaCS = addEventHandler('OnElementStreamIn', function(event, element)
outputChatBox("Element with id " .. element.id .. " has streamed in.", COLOUR_BLUE)
message('Element with id ' .. element.id .. ' has streamed in.', COLOUR_BLUE)
end)
end)
|exampleJSSS = addEventHandler("OnElementStreamIn", function(event, element, client) {
outputChatBox("Element with id " + element.id + " has streamed in for " + client.name, COLOUR_BLUE)
});
|exampleJSCS = addEventHandler("OnElementStreamIn", function(event, element) {
outputChatBox("Element with id " + element.id + " has streamed in.", COLOUR_BLUE)
});
}}
}}
21

edits

Navigation menu