Garry's Mod Wiki

Revision Difference

team.SetUp#511792

<function name="SetUp" parent="team" type="libraryfunc">⤶ <description>Creates a new team.</description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="teamIndex" type="number">The team index.</arg>⤶ <arg name="teamName" type="string">The team name.</arg>⤶ <arg name="teamColor" type="table">The team color. Uses the &lt;page&gt;Color&lt;/page&gt;.</arg>⤶ <arg name="isJoinable" type="boolean" default="true">Whether the team is joinable or not.</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Create team 2 with name "Mingebags" and color red</description>⤶ <code>team.SetUp(2, "Mingebags", Color(255, 0, 0))</code>⤶ ⤶ </example>