Jump to content

Recommended Posts

Create a file. Open it in a text editor. Write 

<meta>
  <info author="your name" version="1.0" name="friendly name for the resource" description="brief description of the resource" type="script" />
  
  <script src="lua_script.lua" type="client" /> <!-- for client-side scripts -->
  <script src="lua_script.lua" type="server" /> <!-- for server-side scripts -->
</meta>

It's as simple as that. There are a lot more things you can add there, all of which can be found on the wiki page for meta.xml. Its a simple XML document - you must make sure all tags are balanced, or closed. So the <meta> tag must have a corresponding </meta> tag at the end. Tags can be self-closing where there is no inner content, such as <script />. Every tag can have attributes, which look as follows: attribute="value", these don't count as inner content so tags with attributes can still be self-closing. It's pretty much that simple.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...