Resources: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 44: Line 44:
</meta>}}
</meta>}}


The info element would contain who made the script, the type of script and the version of the script.<br>
The info element contains who made the script, the type of script and the version of the script.<br>
You would have a script element for each script file you wish to load.<br>
 
The type attribute refers to where the script will run, specify "server" for server code or "client" to have the script download and run on the client.<br>
You would have a script element for each script file you wish to load, each with a "type" attribute that refers to what side the script will run on (server or client), a language attribute that tells the server/client which language the script file uses (see [[SupportedLanguages|supported scripting languages]]), and a "src" attribute with the file name as a relative path (i.e. "example.js" or "foo/bar.js".
The language attribute tells the server which language to interpret the script. <br>GTA Connected supports Lua (language="lua"), JavaScript (language="javascript"), and Squirrel (language="squirrel")


Below is a list of all accepted meta.xml nodes.
Below is a list of all accepted meta.xml nodes.
2,756

edits

Navigation menu