Getting_started/content_xml
LU/content.xml is read at startup. Each tag sits on its own line. All attributes are written as name="value".
| Tag | Attributes | Purpose |
|---|---|---|
<colour> | r g b a | Adds an entry to the team-colour palette. player.Colour is an index into this list. |
<spawnscreen> | id camx camy camz plrx plry plrz camlookx camlooky camlookz | Camera + ped position for a class-selection scene (referenced by sscreen). |
<class> | team skin colour x y z angle sscreen | A spawn class the player can choose. classID in onPlayerSpawn is its index (0-based, in file order). |
<vehicle> | model x y z angle col1 col2 | A static vehicle placed at startup. col1="-1" col2="-1" = random pair. |
<object> | model x y z anglez | A static map object. |
<pickup> | model x y z | A static pickup. |
<script> | folder | Loads the script folder Scripts/<folder>/ (reads its Script.xml). Order matters. |
<colour r="255" g="0" b="0" a="0"/>
<class team="0" skin="0" colour="1" x="98.45" y="-954.50" z="27.16" angle="0.0" sscreen="0"/>
<pickup model="1362" x="763.0" y="-931.0" z="40.0"/>
<script folder="Main" />If no <class> or <spawnscreen> is present, a default one is added (the server prints a warning).
Categories: Getting started