Search results

Jump to navigation Jump to search
  • Returns the host of specified user if it could be retrieved, or ''false'' if it failed or invalid arguments were passed. ...rcbot called ''DummyBot'' makes it connect to a server and join a channel. It also includes an IRC command '!ban' which can be used to ban users (unable
    2 KB (258 words) - 14:47, 15 August 2009
  • It it succeeds returns true, in other case returns false addEventHandler("onResourceStart", getRootElement(), resourceStart)
    2 KB (193 words) - 16:43, 11 February 2015
  • ...es it connect to a server and join a channel called ''#testchannel'' after it has connected. addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), resourceStart )
    1 KB (195 words) - 18:18, 13 August 2009
  • ...es not return ''true'' if the user was successfully kicked or ''false'' if it failed. You can check if the user was kicked by using callback {{ml_birc|ev ...cbot called ''DummyBot'', makes it connect to a server and join a channel. It also includes an IRC command '!kick' which can be used to kick users from t
    2 KB (250 words) - 16:26, 15 August 2009
  • '''Important:''' If you attach this event to the root element it will called when ''any'' resource starts, not just the resource your script addEventHandler ( "onResourceStart", root, displayLoadedRes )
    1 KB (174 words) - 14:02, 2 June 2021
  • This example will add a command called '/delnode' and it will create an xml file called 'test.xml'. addEventHandler("onResourceStart", resourceRoot, function()
    1 KB (143 words) - 20:13, 2 January 2015
  • ...number of simultanuous connections is 5. There is no limit for ircbots but it is not possible to connect more than 5 bots at a time. This example creates an ircbot called ''DummyBot'' and makes it connect to irc.gtanet.com server on resource start.
    1 KB (204 words) - 16:45, 11 February 2015
  • ...rcbot called ''DummyBot'' makes it connect to a server and join a channel. It also includes an IRC command '!finduser' which can be used to check if a sp addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), resourceStart )
    2 KB (224 words) - 14:55, 15 August 2009
  • ...amp). You can remove the door by using [[removeWorldModel]] and recreating it for later with [[moveObject]].}} ...s a garage door when a player enters a collision shape near it, and closes it when they leave:
    2 KB (284 words) - 14:08, 7 December 2021
  • :For example, if there is a file named 'settings.xml' in the resource 'ctf', it can be accessed from another resource this way: ''getResourceConfig(":ctf/s ...local subNode = xmlFindChild( node, "group", 0 ) -- get a subnode in it
    2 KB (248 words) - 18:45, 29 April 2012
  • ...Of course only those which are available clientside. It doesn't matter if it's a MTA function, a Lua standard function or a custom function. ...tside to avoid data being lost. If you don't need this feature just delete it.
    3 KB (334 words) - 09:37, 24 May 2012
  • This function creates a table in the database. It doesn't do anything when the table already exists. You can use this functio -- create our table, if it doesn't already exist
    2 KB (249 words) - 15:13, 4 October 2016
  • ...es not return ''true'' if the user was successfully banned or ''false'' if it failed. You can check if the user was kicked by using callback {{ml_birc|ev ...cbot called ''DummyBot'', makes it connect to a server and join a channel. It also includes an IRC command '!ban' which can be used to ban users from the
    2 KB (289 words) - 16:23, 15 August 2009
  • ...tive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --> ...f successful, otherwise ''false'' or ''nil'' if the aclGroup is invalid or it fails for some other reason.
    2 KB (240 words) - 06:35, 6 February 2021
  • ...d theResource == blipsResource ) then -- check if the resource started was it addEventHandler ( "onResourceStart", getRootElement(), onStart )
    1 KB (193 words) - 13:04, 4 February 2020
  • ...rights to the resource, in which you are using restartResource function or it won't work. ...esourceStop]] event triggered and the restarted instance will receive an [[onResourceStart]] event. Remember that the element and resource variables will be invalidat
    2 KB (314 words) - 04:45, 11 August 2019
  • ...tive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --> addEventHandler("onResourceStart",resourceRoot,function()
    2 KB (181 words) - 07:10, 6 February 2021
  • ...tive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --> <syntaxhighlight lang="lua">addEventHandler("onResourceStart", resourceRoot, function()
    2 KB (179 words) - 06:36, 6 February 2021
  • ...'true'' if the player was successfully logged out, ''false'' or ''nil'' if it failed for some reason, ie. the player was never logged in. addEventHandler("onResourceStart", resourceRoot, logoutAll) -- تسجيل خروج جميع اللاعبين
    1 KB (86 words) - 03:50, 28 August 2012
  • ...(but this isn't a valid resource) or if the name you specify isn't valid. It could also fail if the disk was full or for other similar reasons. Won't wo addEventHandler("onResourceStart", resourceRoot, renameReloadResource);
    1 KB (181 words) - 13:37, 10 August 2021
View ( | ) (20 | 50 | 100 | 250 | 500)