Search results

Jump to navigation Jump to search
  • author = getResourceInfo ( getThisResource(), "author" ) --Get the authors name if author then --if it exists
    1 KB (150 words) - 05:18, 11 August 2019
  • ...s your resource if any part of the code or some resource file has changed, it works just like "refreshResources ()" but adapted for one particular resour local meta = xmlLoadFile(":"..getResourceName(getThisResource()).."/meta.xml")
    2 KB (179 words) - 14:23, 23 January 2016
  • *'''quitMessage:''' A quit message to be displayed when quitting. By default it uses the quit message set by {{ml_birc|ircSetQuitMessage}}. This example creates an ircbot called ''DummyBot'' and makes it connect to irc.gtanet.com server on resource start. When the resource stops
    1 KB (148 words) - 18:23, 29 July 2009
  • resource getThisResource ( ) This example retrieves the current resource's root element and attaches it to an onResourceStart event handler. This causes the event handler to get c
    1 KB (157 words) - 19:40, 14 March 2023
  • ...it's quit message and makes it connect to a server. Once it has connected, it prints out the quit message to server log. addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), resourceStart )
    1 KB (130 words) - 09:28, 30 July 2009
  • ...This function does not stop the resource immediately, so don't expect that it starts stopping until the [[onResourceStop]] event for that resource is tri -- if it's running, and it is not the current resource
    1 KB (160 words) - 04:47, 11 August 2019
  • ...lled ''DummyBot'' and makes it connect to a server. Once it has connected, it prints out a message with the bot's name to server log. addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), resourceStart )
    991 bytes (120 words) - 09:23, 30 July 2009
  • Returns a ''string'' with the attribute value if it exists, ''false'' otherwise. author = getResourceInfo ( getThisResource(), "author" ) --Get the authors name
    1 KB (130 words) - 16:35, 1 January 2015
  • element getResourceRootElement ( [resource theResource=getThisResource()] ) ...not specified, assumes the current resource. (the resource returned from [[getThisResource]])
    2 KB (253 words) - 18:38, 17 December 2023
  • ...in a channel called ''#testchannel'' after it has connected. It also makes it part that channel after a little while. addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), resourceStart )
    1 KB (176 words) - 18:23, 13 August 2009
  • This function returns the current channel topic and it's creator of the specified channel. The specified {{ml_birc|ircbot}} has to ...y set topic and it's creator of the specified channel. If no topic is set, it returns empty strings.
    2 KB (203 words) - 18:03, 13 August 2009
  • ...ng. This includes information about element types, and table structures. It is especially useful for quick debug tasks. If one of the arguments is nil, any arguments after it will not appear.
    4 KB (512 words) - 16:55, 18 February 2018
  • ...hich can used to check if the topic is locked (only channel ops can change it) on that channel. addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), resourceStart )
    2 KB (218 words) - 17:58, 13 August 2009
  • ...es a little advert field on the bottom right corner of the screen and sets it to read only. if advert then -- if it was successfully created
    1 KB (163 words) - 10:57, 20 January 2018
  • ...ng="lua">addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource( ) ), -- only execute the code when this resource restarts ...dOnly( memo, true ) -- make it read only, so players won't be able to edit it in-game
    1 KB (141 words) - 13:56, 10 August 2021
  • ...es a little advert field on the bottom right corner of the screen and sets it to read only. if advert then -- if it was successfully created
    1 KB (164 words) - 14:56, 18 January 2018
  • ...e default parent of all GUI elements that belong to a particular resource. It has a predefined variable called '''guiRoot''', and each resource has one o ...hlight lang="lua">element getResourceGUIElement ( [ resource theResource = getThisResource( ) ] )</syntaxhighlight>
    1 KB (183 words) - 21:12, 7 August 2018
  • if advert then -- if it was successfully created DGS:dgsMemoSetReadOnly( advert, true ) -- make it read only
    1 KB (133 words) - 10:56, 20 January 2018
  • if advert then -- if it was successfully created DGS:dgsEditSetReadOnly( advert, true ) -- make it read only
    1 KB (136 words) - 09:22, 15 July 2018
  • ...and makes it connect to a server and join a channel once it has connected. It also includes an IRC command '!setquitmessage <name>' which can be used to addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), resourceStart )
    1 KB (182 words) - 09:37, 30 July 2009
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)