-
Database Setup:
You need to import the SQL file into your database. This step is crucial for the resource to work properly. -
Using ESX:
If you want to use ESX framework, you will need to uncomment the line in thefxmanifest.luafile that imports ESX. This allows the resource to interact with the ESX framework. -
Using Items:
- If the option
useItemis activated in the configuration, you need to create the item in your framework (either in the Config file or in the database). Once the item is created, you can use it to create a boombox. - If the option
useItemis not activated, you can use the command/createSpeakerto create a boombox directly.
- If the option
-
Need Help?
If you need further assistance, join the community Discord: https://discord.com/invite/GarJqg77aC
oxmysql: This is required to interact with the database.
Before you can run the resource, make sure you have the following installed:
-
Node.js:
Install Node.js from here. This will allow you to run the development server and build the project. -
MySQL Database:
The resource interacts with a MySQL database. Ensure that you have a working database connection and have imported the provided SQL file into your database. -
Framework (Optional):
If you're using the ESX framework, ensure you have it installed and properly configured.
To start the resource in development mode, follow these steps:
-
Clone or download the project.
-
Navigate to the project folder in your terminal.
-
Run the following command to install the necessary dependencies:
npm install
-
After the dependencies are installed, run the development server with:
npm run start
This will start the resource in development mode and allow you to see live changes as you make edits.
To build the resource (for production or final deployment), use the following steps:
-
Once you’re ready to build, run the following command:
npm run build
This command compiles the resource and prepares it for production use.
- If you have problems related to missing dependencies, try running
npm installagain or delete thenode_modulesfolder and reinstall the dependencies.