NAT2K15 Development
DiscordStoreConfigGithubStatus Page
  • NAT2K15 Documentation
  • Paid Scripts
    • FiveM Framework
      • 💻Choose your hosting
        • 💻Windows Hosting
          • 🛢️MySQL Installation (xampp)
          • 🛢️MySQL Connection String
          • 👨‍💻Installing Framework
        • 🐧Linux Hosting
          • 🛢️MySQL Installation
          • 🛢️MySQL Connection String
          • 👨‍💻Installing Framework
        • 🎮Panel Hosting
      • 📋Framework Addons
        • FiveM Scoreboard
        • ☎️Framework 911 (paid)
        • 📲NPWD X Framework
          • 📋Editing NPWD Config
          • 🧠Installing npwd-framework
      • ✒️Change Logs
      • ✍️Developers Usage
        • Client Side Exports
        • Server Side Exports
      • ❌Frequent Issues
    • Personal Vehicle V2
      • Discord Bot Token
      • Installing Dependency
      • Editing the Config
    • FiveM Discord Whitelist
      • Discord Bot Token
      • Edit the config
  • FiveM vMenu Modification
  • FiveM Vehicle & Weapon Management System
    • Installing Dependency
    • Configuration Guide
  • FiveM Admin Zone
  • Paid Bots
    • Ticket Bot V2
      • 💻Windows Hosting Guide
        • 🛢️MySQL Installation (xampp)
        • 👨‍💻Installing Node.js
    • Multi Server Control
      • 💻Windows Hosting Guide
        • 👨‍💻Installing Node.js
        • 🚂Starting The Bot
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. FiveM Vehicle & Weapon Management System

Installing Dependency

The vehicle and weapon system relies on a single dependencies: oxmysql. below is our guide on installing oxmysql and setting up a sql server on windows.

PreviousFiveM Vehicle & Weapon Management SystemNextConfiguration Guide

Last updated 4 days ago

Was this helpful?

Oxmysql (Windows Version)


Installing SQL server

Installing XAMPP:

Step 1: Download and Install XAMPP

  1. Visit the Official XAMPP Website: Go to and download the XAMPP installer for Windows.

  2. Run the Installer: Launch the downloaded installer. You might need to approve the UAC prompt and disable any antivirus temporarily if it blocks the installation.

  3. Select Components: During installation, ensure that Apache, MySQL, and PHP are selected. You can deselect other components unless you know you'll need them.

  4. Choose Installation Directory: You can install XAMPP in the default directory (C:\xampp) or choose another location. Click Next and proceed with the installation.

  5. Complete Installation: Follow the remaining prompts and finish the installation.

Step 2: Start Apache and MySQL

  1. Launch XAMPP Control Panel in Administrator: After installation, open the XAMPP Control Panel. You can find it in the Start Menu or where you installed XAMPP.

  2. Installing services: When XAMPP opens up click the ❌ button on the left side of Apache and MySQL and install the services.

  1. Start Apache and MySQL: Click the 'Start' buttons next to Apache and MySQL. This will run your local server and database server.

Step 3: Creating The Database

  1. Open phpMyAdmin: Open phpMyAdmin using the Admin Button on Apache.

  1. Creating a database: Upon opening phpMyAdmin click new on the top left then type for database name fivem (all lowercase) then click create.

Congratulations, you now know how to create a fivem database. Move on to the next page to continue the installation.

Creating an SQL string

Creating your connection string:

  1. Visit the MySQL String Generator Website:

  2. Click Next twice until you are on 3: Configure the FXServer.

  1. After you are on the 3rd page, scroll down until you see this:

  1. The following information will be required for your connection string to work: (Some other things you can add will be: acquireTimeout and connectTimeout - These will make the string take longer before connecting / pushing an error.)

  • User

  • database

  • host

  • password

  1. After filling out the info regarding your database and you should see a section called FXServer Configuration

  2. Copy the line shown below from the website and paste it into your server.cfg and restart your server

Ensuring oxmysql or mysql-async

Whether you use or the way you ensure the it matters.

  1. Put the following lines of code into your server.cfg below all the default resources required by FiveM.

  2. When downloading the files from github always select the releases version on the right side.

set mysql_connection_string "host=localhost;user=root;database=fivem"
ensure oxmysql -- Only if using oxmysql

Congratulations, you connected your database to your FiveM Server!

Apache Friends
Here
oxmysql
mysql-async
Password only required if you created with a password