# Startup Purge

**Admin Commands:**

1. **/purge**\
   Activates the survival event. This command should be used to signal the beginning of the event.
2. **/startpurge**\
   Starts the survival phase. The event will officially begin, and players will be immersed in the competition.
3. **/endpurge**\
   Ends the event and resets the server to normal gameplay. Players will return to their regular activities.

**Player Command:**

1. **/joinpurge**\
   Allows players to enter the event before it begins. Once the event starts, they will not be able to join.
   * **Important**: Players will lose any weapons they had before entering the event. They should choose their loadout carefully!

***

#### **Requirements**

* **OX Inventory** or **QB Inventory** *(Optional)*
* **ESX Framework** or **QBcore Framework**
* **Xsound** *(Required for sound effects)*
* **Cayo Perico** *(Required map for the event)*
* **Okok Notify** *(Optional for notifications)*

***

#### **Admin Permissions**

To allow an admin to control the event, you must add them to the server's permissions configuration.

* **Permission Command**:\
  Add the following line to your `server.cfg` to give an admin control over the event:

```bash
add_ace identifier.steam:[SteamID] purge allow
```

Replace `[SteamID]` with the actual Steam ID of the admin you want to grant permissions to.

***

#### **Installation**

Download the Purge Script and place it in your server’s resources folder.
