Garry's Mod Wiki

Revision Difference

game.KickID#518415

<function name="KickID" parent="game" type="libraryfunc"> <description>Kicks a player from the server. This can be ran before the player has spawned.</description> <realm>Server</realm> <args> <arg name="id" type="string">UserID or SteamID of the player to kick.</arg> <arg name="reason" type="string" default="No reason given">Reason to display to the player. This can span across multiple lines.&#xA;&#xA;&lt;warning&gt;This will be shortened to ~512 chars, though this includes the command itself and the player index so will realistically be more around ~498. It is recommended to avoid going near the limit to avoid truncation.&lt;/warning&gt;</arg>⤶ <arg name="reason" type="string" default="No reason given">Reason to display to the player. This can span across multiple lines.⤶ <warning>This will be shortened to ~512 chars, though this includes the command itself and the player index so will realistically be more around ~498. It is recommended to avoid going near the limit to avoid truncation.</warning></arg>⤶ </args> </function>