Coder Social home page Coder Social logo

mta-mongodb's Introduction

MTA MongoDB Module

Allow connections to mongodb!

Credits

neoxic for the lua module. I basically took his project and set it up for mta.

Documentation

https://github.com/neoxic/lua-mongo/tree/master/doc

Check out different readmes here for understanding the module api

Download

Check out Releases

Installing the module

64-bit

  • 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)

32-bit

  • 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)

Loading the module

  • You have the following ways

MTA server config

  • 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"/>

Load from server console

  • Run loadmodule DMongoDB.dll OR loadmodule libDMongoDB.so depending on your OS to load the module

mta-mongodb's People

Contributors

dizzaster avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.