> For the complete documentation index, see [llms.txt](https://wiki.lemoncloud.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.lemoncloud.org/gamemodes/prison/gangs.md).

# Gangs

## Gangs

Gangs let you play with other people and compete for Gang Top.

Create a gang with `/gang create [name]`.

Invite players with `/gang invite [user]`.

Accept an invite with `/gang join [name]`.

### Gang Top

Gang Top is based on the total blocks mined by your gang each week.

The top `3` gangs receive Lemons at the end of the week:

1. `25` Lemons
2. `15` Lemons
3. `10` Lemons

Weekly Gang Top progress resets for the new week.

The gang leader receives the Lemons. They decide how to distribute them.

Use `/gang top` to view:

* The top `10` gangs
* Total blocks mined by each gang
* Individual member contributions

### Gang commands

| Command                | Description                                                  |
| ---------------------- | ------------------------------------------------------------ |
| `/gang create [name]`  | Creates a new gang if you are not already in one             |
| `/gang invite [user]`  | Invites a player to your gang                                |
| `/gang join [name]`    | Accepts an invite to the specified gang                      |
| `/gang leave`          | Leaves your current gang                                     |
| `/gang info [name]`    | Shows a gang's kills, deaths, assists, leader, and members   |
| `/gang info [user]`    | Shows a player's kills, deaths, assists, gang, and gang rank |
| `/gang kick [user]`    | Removes a player from your gang                              |
| `/gang promote [user]` | Promotes a player in your gang                               |
| `/gang leader [user]`  | Transfers gang ownership to another member                   |
| `/gang demote [user]`  | Demotes a player in your gang                                |
| `/gang disband`        | Disbands the gang and wipes Gang Top progress                |
| `/gang confirm`        | Confirms actions like disbanding                             |
| `/gang friendlyfire`   | Toggles whether gang members can damage each other           |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.lemoncloud.org/gamemodes/prison/gangs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
