OnPlayerJoined: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 12: Line 12:
[[OnPlayerJoin|OnPlayerJoin]]<br>
[[OnPlayerJoin|OnPlayerJoin]]<br>
[[OnPlayerJoined|OnPlayerJoined]]
[[OnPlayerJoined|OnPlayerJoined]]
|exampleJSSS =  
|exampleJS =  
addEventHandler('OnPlayerJoined', (event, client) => {
addEventHandler('OnPlayerJoined', (event, client) => {
messageClient(`Hello ${client.name}, welcome to my server! 👋`, client, COLOUR_YELLOW);
messageClient(`Hello ${client.name}, welcome to my server! 👋`, client, COLOUR_YELLOW);
});
});
|exampleLuaSS =  
|exampleLua =  
addEventHandler('OnPlayerJoined', function(event, client)
addEventHandler('OnPlayerJoined', function(event, client)
messageClient('Hello ' .. client.name .. ', welcome to my server! 👋', client, COLOUR_YELLOW)
messageClient('Hello ' .. client.name .. ', welcome to my server! 👋', client, COLOUR_YELLOW)
end)
end)
}}
}}
21

edits

Navigation menu