This is a heavily modified version of Mythic Framework for Sandbox RP. This is a custsom framework that uses a component system, all UI's are built in React. This codebase is being released with the full permissions of the original Mythic Framework authors Alzar & Dr Nick
Packages | Link |
---|---|
NodeJS | Download Here |
MongoDB | Download Here (v6.0.5) |
MariaDB | Download Here (v10.6.12) |
HeidiSQL | Download Here (*can be installed via MariaDB) |
Git for Windows | Download Here |
This will not work out of the box, you will need to make modifications to the base to replace the WebAPI calls with whatever authentication source you're wanting to do. If you don't understand how to do that, go use ESX.
Clone the project
git clone [email protected]:badcodestv/sandbox-server.git
Go to the project directory
cd sandboxrp-server
Download latest FiveM Windows Artifact
Create new artifact
folder in the root directory
mkdir artifact
Move downloaded artifact files into the artifact folder
- Best to just use windows explorer to move things around!
Create txData
folder in root directory
mkdir txData
Go into the server/config
directory and duplicate the example
files. Remove example
from the duplicated files.
example.core.ptr.cfg
->core.ptr.cfg
example.database.ptr.cfg
->database.ptr.cfg
example.mongodb.ptr.cfg
->mongodb.ptr.cfg
Fill in the correct database information for Heidi/MariaDB in database.ptr.cfg
Fill in the correct database information for MongoDB in mongodb.ptr.cfg
Go into the server/
directory and duplicate the example.server.ptr.cfg
file. Remove example
from the duplicated file.
example.server.ptr.cfg
->server.ptr.cfg
Add your cfx
key into the sv_licenseKey
field (*will add my own key soon so mlos can be used)
Using HeidiSQL, import the database.sql
file.
If this is your first time launching this server, use ./artifact/FXServer.exe
to launch. It'll prompt you to create a txAdmin username/password and link your FiveM account. Once you do so, you'll want to link the project to an existing project and setting the filepaths for the .cfg
files.
Once that is set up, let it load the resources and setup. You'll want to make sure you turn on OneSync
in txAdmin so the server can properly work and restart the server.
You'll notice a .bat
file that's in the root directory. You'll want to use that to start your server up each and every time (easy). But, you'll need to go back into txAdmin and update the paths to the *.cfg
files again - but, that's no problem!
In the MongoDB GUI, under the _auth.users
collection, add a new dataset under the groups
array called either admin
, owner
, or staff
. If you're already in the server, soft or hard relog to retrieve the new permissions.
To use the admin tool, run /admin
or /staff
.
Discord Logging only works in production
mode in core.*.cfg
so if you want logs on your dev server, set your environment to prod
in core.ptr.cfg