FiveM MongoDB wrapper
Description
This resource is a simple MongoDB wrapper for FiveM. It’s running on top of MongoDB Node Driver.
This is my first public resource, so any feedback will be appreciated
Installation
- Clone this repository to
resources/mongodb
folder. - Copy
mongodb/database.cfg
to your server root directory. - Add the following lines to your server config:
exec "database.cfg"
start mongodb
- Change
mongodb_url
andmongodb_database
indatabase.cfg
. - Run
npm install
inresources/mongodb
directory.
Usage
See README and example.lua script.
Download
Credits
- MySQL-Async resource for some basic code.
- MongoDB Node driver.
-
FiveM Discord
#scripting
channel (especially iridium, Blade and d0p3t) - syntasu for moving this topic from discussion.