Search results

Jump to navigation Jump to search
  • Returns '''true''' if the selected resource is archived, '''false''' if it is not archived, and '''nil''' if some kind of problem occurred. This example stops the resource if it's archived.
    2 KB (214 words) - 03:13, 12 August 2023
  • ...ed off using this function. The animation can not be cancelled by a player it's applied to, and he will not loose health. function onResourceStart()
    1 KB (174 words) - 23:09, 11 January 2023
  • function onResourceStart() ...pSync", vehicleElement, onElementStopSync) -- Bind handler specifically to it
    1 KB (143 words) - 23:50, 6 January 2023
  • ...xample retrieves the current resource's root element and attaches it to an onResourceStart event handler. This causes the event handler to get called only when the '' addEventHandler("onResourceStart", resRoot, function()
    1 KB (157 words) - 19:40, 14 March 2023
  • ...xample retrieves the current resource's root element and attaches it to an onResourceStart event handler. This causes the event handler to get called only when the '' -- create a function to handle the onResourceStart event
    2 KB (253 words) - 18:38, 17 December 2023
  • .... It returns empty string if the resource is on root ''resources'' folder. It returns '''false''' if the resource could not be found. This example outputs the path of the current resource when it is started.
    976 bytes (111 words) - 13:12, 10 August 2021
  • My example of how to move/rotate garage dor back while it's still moving/rotating: addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), resourceStart )
    2 KB (214 words) - 08:30, 6 September 2013
  • ...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
  • ...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
  • '''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.) outputChatBox("Looks like it's going to be a rainy day!",255,130,130,false)
    2 KB (192 words) - 23:12, 11 January 2023
  • ...if there is a file named 'coolObjects.txt' in the resource 'objectSearch', it can be opened from another resource this way: ''fileOpen(":objectSearch/coo ...if there is a file named 'coolObjects.txt' in the resource 'objectSearch', it can be opened from another resource this way: ''fileOpen(":objectSearch/coo
    10 KB (1,252 words) - 13:54, 1 November 2021
  • ...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
  • ...the ACL was successfully removed from the ACL group, ''false''/''nil'' if it could not be removed for some reason, ie. either of the elements were inval <syntaxhighlight lang="lua">addEventHandler("onResourceStart",resourceRoot,function()
    1 KB (176 words) - 09:06, 5 February 2021
  • ...the ACL was successfully removed from the ACL group, ''false''/''nil'' if it could not be removed for some reason, ie. either of the elements were inval <syntaxhighlight lang="lua">addEventHandler("onResourceStart",resourceRoot,function()
    1 KB (176 words) - 08:35, 5 February 2021
  • 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
  • Returns a team element if it was successfully created, ''false'' if invalid arguments are passed or a te ...ample 1:''' This example creates a new team for a player, then adds him to it.
    2 KB (333 words) - 00:02, 24 July 2018
  • This event is triggered when a player trips anti-cheat detections. It can be used to script a white/blacklist of custom d3d9.dll files, or a whit ...e using this event should call [[resendPlayerACInfo]] for each player in [[onResourceStart]]}}
    4 KB (540 words) - 23:43, 10 May 2019
  • ...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
  • '''Note:''' It is required to register your ircbot to the module if you're willing to use ...2''' starts, it checks if ircbot named ''DummyBot'' exists and if it does, it registers that bot's callbacks for resource '''ircecho2'''. Now ''DummyBot'
    3 KB (377 words) - 16:45, 11 February 2015
  • ...getElementsByType( "player" ) )'' but simply ''iterElements( "player" )''. It's very useful if you have many for loops in your code. This example will iterate through all players and vehicles. It will heal the players, give them $1000, send them a message informing them
    1 KB (163 words) - 08:14, 29 October 2023
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)