21
edits
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
[[OnPlayerJoin|OnPlayerJoin]]<br> | [[OnPlayerJoin|OnPlayerJoin]]<br> | ||
[[OnPlayerJoined|OnPlayerJoined]] | [[OnPlayerJoined|OnPlayerJoined]] | ||
| | |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); | ||
}); | }); | ||
| | |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) | ||
}} | }} |
edits