Filepath: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 7: Line 7:
  xmlLoadFile ( ":helpmanager/help.xml" )
  xmlLoadFile ( ":helpmanager/help.xml" )
}}
}}
Note: Server side filepaths which refer to resources will work correctly even if the other resource is not running. However
client side filepaths require the target resource to be running.
[[Category:Scripting Concepts]]
[[Category:Scripting Concepts]]

Revision as of 06:28, 1 June 2011

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" )

Note: Server side filepaths which refer to resources will work correctly even if the other resource is not running. However client side filepaths require the target resource to be running.