# Basic Step

{% embed url="<https://www.youtube.com/watch?ab_channel=FRYDEV%F0%9F%8D%9F&v=Q6HzZ5g_WCc>" %}

{% hint style="warning" %}
**Disclaimer: Lua Proficiency and Compatibility**

Before diving into the customization and configuration of FRYDEV Spawn, it's essential to note that a solid understanding of the Lua programming language is highly recommended. FRYDEV Spawn's extensive customizability and personalization options often require familiarity with Lua scripting to make the most out of this advanced spawn script.

Furthermore, as of the latest release, FRYDEV Spawn has been optimized and tailored to work seamlessly with <mark style="color:red;">QBCore</mark> and <mark style="color:red;">QBX</mark> frameworks. While we've ensured compatibility with these popular frameworks, we understand that many players use different frameworks in their GTA V FiveM servers.

\
The good news is that FRYDEV Spawn offers <mark style="color:red;">**plenty**</mark> of <mark style="color:red;">**flexibility**</mark> and <mark style="color:red;">**modularity**</mark>. Even if you're not using QBCore or QBOX, you have ample opportunities to adapt and integrate it into your preferred framework. With access to the unencrypted portions of the script, you can make the necessary adjustments to align it with your specific server setup.
{% endhint %}

## **Step 1: Regardless of Your Framework - Integration Basics**

No matter which framework you're using, whether it's QBCore, QBX, or any other, let's start with the integration basics. In our Integration tab, you'll find specific instructions for each of these systems, guiding you step by step on how to successfully integrate FRYDEV Spawn.

## **Step 2: Downloading and Importing FRYSPAWN**

1. Download "<mark style="color:yellow;">**fry\_spawn**</mark>" from your [<mark style="color:yellow;">**CFX.RE Keymaster**</mark>](https://keymaster.fivem.net/).
2. Import the downloaded resource into your core folder.
3. Ensure that the resource is named "fry\_spawn" since we utilize NUI (Web elements) that reference the URL as "fry\_spawn."

## **Step 3: Setting Up the Database**

1. Open your PHPMYADMIN or any other SQL database management interface.
2. Import the following SQL code:

````sql
```sql
CREATE TABLE `fry_spawn` (
  `id` int(11) NOT NULL,
  `uid` text NOT NULL,
  `screen_x` text NOT NULL,
  `screen_y` text NOT NULL,
  `gang` text NOT NULL,
  `job` text NOT NULL,
  `data` text NOT NULL,
  `x` float NOT NULL,
  `y` float NOT NULL,
  `z` float NOT NULL,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

ALTER TABLE `fry_spawn`
  ADD PRIMARY KEY (`id`);
 ```

````

### **After completing these steps, proceed to the integration process:**

{% content-ref url="/pages/CSVM6DZBfhIuMVGMLc1d" %}
[Integration](/jerzys-sandbox/spawn-selector/integration.md)
{% endcontent-ref %}


---

# 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://jerzys-sandbox.gitbook.io/jerzys-sandbox/spawn-selector/basic-step.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.
