Search results
Jump to navigation
Jump to search
- {{Note|To prevent memory leaks, ensure each call to [[xmlLoadFile]] has a matching call to [[xmlUnloadFile]]}} xmlnode xmlLoadFile ( string filePath [, bool readOnly = false ])2 KB (260 words) - 22:04, 18 November 2018
- ...ds up to a file. These are relative to the root directory of the resource it is being called from. {{New feature|3|1.0|It is also possible to use special filepaths in order to reference files from1 KB (213 words) - 04:14, 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
- Returns the value of the node as a [[string]] if it was received successfully, ''false'' otherwise. local xmlFile = xmlLoadFile ( "exampleFile.xml" ) -- Open a file that we have already created5 KB (656 words) - 20:50, 12 May 2019
- local xmlFile = xmlLoadFile ( "exampleFile.xml" ) -- Open a file already created if xmlFile then -- If it's indeed opened5 KB (633 words) - 20:52, 12 May 2019
- local xmlFile = xmlLoadFile ( "exampleFile.xml" ) -- Open a file already created if xmlFile then -- If it's indeed opened5 KB (579 words) - 11:36, 25 December 2014
- local xmlFile = xmlLoadFile ( "exampleFile.xml" ) -- Open a file that we have already created if xmlFile then -- If it's indeed opened5 KB (603 words) - 11:29, 25 December 2014
- This example will add a command called '/delnode' and it will create an xml file called 'test.xml'. xml = xmlLoadFile("test.xml")1 KB (143 words) - 20:13, 2 January 2015
- ...[[Meta.xml|meta file]]. An alternative way to load XML files is to use [[xmlLoadFile]]. :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/s2 KB (248 words) - 18:45, 29 April 2012
- This example code opens the meta.xml of the resource it belongs to, and prints all attributes of the <info> node to the console. local meta = xmlLoadFile ( "meta.xml" )1 KB (192 words) - 21:27, 20 December 2015
- ...returns the corresponding child node if it exists. If no nodes are found, it returns an empty table. Returns ''false'' in case of failure. local xml = xmlLoadFile("welcome.xml") -- open the XML file3 KB (326 words) - 20:29, 23 September 2016
- ...le named 'newfile.xml' with myNode as the root node in the resource 'ctf', it can be done from another resource this way: ''xmlCopyFile(myNode, ":ctf/new local config = xmlLoadFile("config.xml")2 KB (304 words) - 23:15, 13 February 2015
- Returns a [[float]] size of the resource counting the meta. Otherwise it returns ''false''. local metaXML = xmlLoadFile(':'..resourceName..'/meta.xml')4 KB (436 words) - 18:27, 14 November 2021
- -- this will add all the vehicle options onto the gridlist, it is explained later in this tutorial -- when the resource is started, create the GUI and hide it20 KB (2,848 words) - 13:34, 25 November 2018
- ...g only the name of the files (with their respective extensions). Otherwise it returns '''false'''. ...ourceFolder argument #1. The path must contain '/' at the end to make sure it is a directory.", 2)8 KB (976 words) - 19:29, 27 September 2023
- ...item to scroll along the bottom of the screen, updating the news text once it has scrolled beyond the edge of the screen. -- also make it half the height of the gridlist, as half of the gridlist is off the bottom18 KB (2,936 words) - 22:39, 5 November 2018
- -- this will add all the vehicle options onto the gridlist, it is explained later in this tutorial -- when the resource is started, create the GUI and hide it21 KB (3,277 words) - 12:53, 13 May 2019
- ...item to scroll along the bottom of the screen, updating the news text once it has scrolled beyond the edge of the screen. -- also make it half the height of the gridlist, as half of the gridlist is off the bottom19 KB (3,117 words) - 21:24, 26 December 2018
- * Added ''readOnly'' option to [[xmlLoadFile]] * Removed VS2008 redistributable from installer as it is no longer required6 KB (739 words) - 19:41, 29 December 2022
- * Fix vehicle.handling and add [[setVehicleHandling|setter]] to it * [[xmlLoadFile]] will now output errors found in the XML file if any ([https://bugs.mtasa.17 KB (2,101 words) - 19:39, 29 December 2022