Allow connections to mongodb!
neoxic for the lua module. I basically took his project and set it up for mta.
https://github.com/neoxic/lua-mongo/tree/master/doc
Check out different readmes here for understanding the module api
Check out Releases
- Copy the built module (DMongoDB.dll or libDMongoDB.so depending on your operating system)
- Paste it in YOUR_MTA_SERVER_DIRECTORY/x64/modules/ (Create the folders if they don't exist)
- Copy the built module (DMongoDB32.dll or libDMongoDB32.so depending on your operating system)
- Paste it in YOUR_MTA_SERVER_DIRECTORY/mods/deathmatch/modules/ (Create the folders if they don't exist)
- You have the following ways
- Inside the server config, search for module
- You can see example code in the config to load modules on server start-up
- Example:
<!-- 64-bit -->
<module src="DMongoDB.dll"/>
<!-- 32-bit -->
<module src="DMongoDB32.dll"/>
OR
<!-- 64-bit -->
<module src="libDMongoDB.so"/>
<!-- 32-bit -->
<module src="libDMongoDB32.so"/>
- Run loadmodule DMongoDB.dll OR loadmodule libDMongoDB.so depending on your OS to load the module