---
description: How to create a war ?
---

# Wars

Every gang has the ability to challenge another gang to war. To do so, the gang leader simply selects the opposing gang from a dropdown menu, chooses the location where the war will take place, and sets the amount to bet on the war. Once the invitation is sent, the opposing gang has a limited amount of time (configured in the script) to accept the war. If they do not accept within the time frame, the invitation is automatically withdrawn.

<figure><img src="https://2134242036-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9QbcpHOPz9QGhghryntp%2Fuploads%2F3yA8sN8ZMDEaVWX3jvLH%2Fimage.png?alt=media&#x26;token=68188712-c83a-44c2-8fe4-52d844bed1f6" alt=""><figcaption></figcaption></figure>

If the opposing gang accepts the war, the bet amount is deducted from both gangs' accounts. After a configurable waiting period (set in the script), the members of both gangs are teleported to the war location, with each gang starting at opposite sides. The battle begins, and the first gang to reach a set number of kills (configured in the script) wins the war.

The outcome of the war, including the number of kills for each gang, is then displayed on the **Wars Page**. Additionally, the kills and war results are also updated in the [**Leaderboard**](leaderboard), showcasing the performance of each gang in the ongoing rivalry.
