Filepath: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: A filepath is a path that leads 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 specia...)
 
mNo edit summary
Line 7: Line 7:
  xmlLoadFile ( ":helpmanager/help.xml" )
  xmlLoadFile ( ":helpmanager/help.xml" )
}}
}}
[[Category:Scripting Concepts]]

Revision as of 16:53, 16 September 2009

A filepath is a path that leads up to a file. These are relative to the root directory of the resource it is being called from.

It is also possible to use special filepaths in order to reference files from other resources. This can be done with the following syntax

:<resourceName>/file.ext

So, for example

xmlLoadFile ( ":helpmanager/help.xml" )