Garry's Mod Wiki

Garry's Mod Wiki

  Player:Kick( string reason = "No reason given" )

Description

Kicks the player from the server.

This can not be run before the player has fully joined in. Use game.KickID for that.

Arguments

1 string reason = "No reason given"
Reason to show for disconnection.
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.

Example

Kick a player with reason "Goodbye"

Entity( 1 ):Kick( "Goodbye" )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...