# How to Install a QBCore Server Using TXAdmin’s Built-In Hosting

✅ **Prerequisites**

Before starting, ensure you have:

* ✅ **RocketNode FiveM TXAdmin hosting**.
* ✅ A **custom QBCore server package** (your own server files).
* ✅ Access to **RocketNode’s Game Panel** (Pterodactyl).
* ✅ Your **database credentials** (provided by RocketNode).

<mark style="background-color:red;">🔹</mark> <mark style="background-color:red;"></mark><mark style="background-color:red;">**Step 1: Access Your RocketNode FiveM TXAdmin Panel**</mark>

* **Log in** to your RocketNode account.
* Navigate to **Game Panel** and find your **FiveM Server**.
* Click **Manage Server** to open your TXAdmin dashboard.

<mark style="background-color:red;">🔹</mark> <mark style="background-color:red;"></mark><mark style="background-color:red;">**Step 2: Install QBCore Framework**</mark>

* Go to **RocketNode’s Game Panel**.
* Click on **File Manager**.
* Delete any default server files (optional, if starting fresh).
* Click **Upload** and **drag & drop your custom QBCore server files** (zip format recommended).
* Once uploaded, extract the files inside the **server-data** folder.

<mark style="background-color:red;">🔹</mark> <mark style="background-color:red;"></mark><mark style="background-color:red;">**Step 3: Configure TXAdmin for Your Custom Server**</mark>

* Open **TXAdmin** → Click **"Create New Server"**.
* Select **"Manual Setup"** instead of "Popular Recipes."
* Set your **server data folder** to the directory where you uploaded your files.
* Save and restart your server.

<mark style="background-color:red;">🔹</mark> <mark style="background-color:red;"></mark><mark style="background-color:red;">**Step 4: Configure the Database (MySQL)**</mark>

#### 1️⃣ **Find Your RocketNode Database Credentials**

1. Open **RocketNode Game Panel** → Click on **Databases**.
2. Copy your **MySQL host, database name, username, and password**.

#### 2️⃣ **Edit Your `server.cfg` File**

1. Open **File Manager** in RocketNode’s Game Panel.
2. Edit `server.cfg` and replace the database line with:

   ```cfg
   set mysql_connection_string "mysql://yourusername:yourpassword@yourhost/qbcore?charset=utf8mb4"
   ```

   *(Replace `yourusername`, `yourpassword`, and `yourhost` with the actual credentials.)*
3. Save and restart the server.

#### 3️⃣ **Import Your QBCore Database**

* Go to **Databases** in RocketNode’s Game Panel.
* Click **Open PHPMyAdmin**.
* Select your database and click **Import**.
* Upload your **QBCore SQL file** (usually `qbcore.sql`).
* Click **Go** to start the import.

<mark style="background-color:red;">🔹</mark> <mark style="background-color:red;"></mark><mark style="background-color:red;">**Step 5: Start Your Server & Port Forwarding**</mark>

* **Go to TXAdmin** → Click **Start Server**.
* If you want to make your server public:
  * Open **RocketNode Game Panel** → **Network Settings**.
  * Ensure **Port 30120 (TCP/UDP)** is **enabled and open**.
* Restart your server for the changes to take effect.

### ✅ <mark style="background-color:red;">**Final Step: Connect to Your Server**</mark>

* Open **FiveM** and press `F8`.
* Type:

  ```
  connect YOUR-ROCKETNODE-SERVER-IP:30120
  ```
* If everything is set up correctly, you will successfully join your **custom QBCore server!** 🎉

### ❓ <mark style="color:red;">**Troubleshooting**</mark>

* **Server not starting?**
  * Ensure your `server.cfg` is correctly configured.
  * Check for missing dependencies in the **Console Logs**.
* **Database connection issues?**
  * Verify that your **MySQL credentials** are correct.
* **Players can't join?**
  * Ensure **port 30120 TCP/UDP** is open in RocketNode’s settings.

Now your **custom QBCore Server is running on RocketNode TXAdmin hosting!** 🚀


---

# 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://docs.fivem-qbcore.com/how-to-install-fivem-qbcore-server-tutorial/publish-your-docs-1.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.
