> For the complete documentation index, see [llms.txt](https://docs.wise-scripts.vip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wise-scripts.vip/scripts/wise-faction/installation.md).

# Installation

## Step 1: <mark style="color:red;">Download from Keymaster</mark>

Goto your [Keymaster Granted Assets](https://keymaster.fivem.net/asset-grants), search for the <mark style="color:red;">wise\_faction</mark> script and download.

***

## Step 2: <mark style="color:red;">Put into Resources</mark>

Open the <mark style="color:red;">wise\_faction.pack.zip</mark> extract the <mark style="color:red;">`wise_faction/`</mark> directory and move the directory into your <mark style="color:red;">`resources/`</mark> directory on your server

***

## Step 3: <mark style="color:red;">Database</mark>

If there are already tables existing, delete those with:

```sql
DROP TABLE IF EXISTS `wise_faction_factions`;
DROP TABLE IF EXISTS `wise_faction_garage`;
```

{% hint style="warning" %}
Do not start the Resource without adding the Tables to the Database first
{% endhint %}

```sql
CREATE TABLE `wise_faction_factions` (
	`name` VARCHAR(50) NULL DEFAULT NULL UNIQUE,
	`color` VARCHAR(50) NULL DEFAULT 'red',
	`settings` TEXT NULL,
	`members` TEXT NULL,
	`accounts` TEXT NULL,
	`warehouse` TEXT NULL,
	`ranksettings` TEXT NULL,
	`logs` LONGTEXT NULL,
	`position` TEXT NULL,
	`progress` TEXT NULL,
	`missions` TEXT NULL
);

CREATE TABLE `wise_faction_garage` (
	`faction` VARCHAR(50) NULL DEFAULT NULL,
	`name` VARCHAR(50) NULL DEFAULT NULL,
	`plate` VARCHAR(50) NULL DEFAULT NULL UNIQUE,
	`vehicle` LONGTEXT NULL,
	`stored` INT NULL
);
```

***

## Step 4: <mark style="color:red;">Start Resource</mark>

Now implement the resource into the <mark style="color:red;">`server.cfg`</mark>  with `ensure wise_faction`, restart your server and done.<br>

***

## Step 5: <mark style="color:red;">Enjoy!</mark>
