Garry's Mod Wiki

Garry's Mod Wiki

  table player.GetBots()

Description

Returns a table of all bots on the server.

Returns

1 table
A table only containing bots ( AI / non human players )

Example

Kicks all bots from the server.

for _, bot in ipairs(player.GetBots()) do bot:Kick("Bot's not allowed") end

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