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

TagAttributesPurpose
<colour>r g b aAdds 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 camlookzCamera + ped position for a class-selection scene (referenced by sscreen).
<class>team skin colour x y z angle sscreenA spawn class the player can choose. classID in onPlayerSpawn is its index (0-based, in file order).
<vehicle>model x y z angle col1 col2A static vehicle placed at startup. col1="-1" col2="-1" = random pair.
<object>model x y z anglezA static map object.
<pickup>model x y zA static pickup.
<script>folderLoads 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