6,834
edits
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
{{LuaCode|1=if debugMode then -- debugMode is a variable | {{LuaCode|1=if debugMode then -- debugMode is a variable | ||
message('Debug mode is enabled for you!', COLOUR_GREEN) | |||
end}} | end}} | ||
'''Lua, Server-Side, Function:''' | '''Lua, Server-Side, Function:''' | ||
{{LuaCode|1= | {{LuaCode|1=message('This message will be shown in the chat box!', COLOUR_GREEN) -- outputChatBox is a function}} | ||
'''Lua, Server-Side, Property:''' | '''Lua, Server-Side, Property:''' | ||
{{LuaCode|1=addEventHandler('onPlayerJoined', function(event,client) | {{LuaCode|1=addEventHandler('onPlayerJoined', function(event,client) | ||
message(client.player.name .. ' has joined the server!', COLOUR_GREEN) -- name is a property of type Element (type Player inherits functionality of Element) | |||
end)}} | end)}} | ||
edits