# Installation

{% hint style="warning" %}
**Automatic SQL Injection**

In the **sf\_voting/!install** directory, you'll find a file called **data\_voting.sql**. There's no need to manually import this into your database. When you launch your server (or just the resource), it will automatically generate and configure the required database table if it hasn't already been created.
{% endhint %}

## Step 1: Install Dependencies

{% embed url="<https://github.com/overextended/oxmysql/releases/latest>" %}
latest release version of oxmysql
{% endembed %}

{% embed url="<https://github.com/overextended/ox_lib/releases/latest>" %}
latest release version of ox\_lib
{% endembed %}

\
**Don't forget to install `sf_lib`, which is included with the script upon purchase.**

## Step 2: Setup Framework

Go to `sf_lib/Config.lua` and config your framework.

## Step 3: Setup Config

Go to `sf_voting/config.lua` file and start setup, everything explained there.

## Step 4: Ensure Resource

This is last step and is easier, just drag and drop the folder into your main resources, if folder you drag him is inside sub folder and this sub folder already started everything ok, if not need to go `server.cfj`and add this command `ensure sf_voting`.


---

# Agent Instructions: 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:

```
GET https://souf-store.gitbook.io/souf-store/fivem-scripts/voting-system/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
