Page cover

ℹ️Basic Step

Basic Setup

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 "fry_spawn" from your CFX.RE Keymaster.

  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
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:

🔌Integration

Last updated

Was this helpful?