Skip to content
Аниса edited this page Dec 13, 2022 · 37 revisions

━ How to get started?

  1. Head over to Assetify's Releases and install the latest build (If you haven't).
  2. Head over to DBify's Releases and download the latest build.
  3. Drag and drop the module folder into your YourMTAFolder/server/mods/deathmatch/resources/[Library]/assetify_library/files/assets after unzipping.
  4. Head over to assetify_library/files/assets/module/DBify_Library/dep/connection.lua and modify your MySQL credentials.
    credentials = {
        username = "",
        password = "",
        database = "",
        host = "",
        port = "3306",
        options = ""
    }
  5. Add -: "DBify_Library" into assetify_library/files/assets/module/manifest.vcl.
  6. restart assetify_library to load the module.
  7. Presuming you have installed the library, this page guides you on how to get started with the library!
  8. Initialize DBify's module within the resource you want to use it as indicated below:
    --Declare it globally only once in either of the server-sided `.lua` script of the resource
    loadstring(exports.assetify_library:import("scheduler"))()
    
    assetify.scheduler.execOnModuleLoad(function()
        assetify.loadModule("DBify_Library", {"shared", "server"})
    end)

━ How to turn off auto Account/Serial synchronization?

Head over to assetify_library/files/assets/module/DBify_Library/dep/connection.lua and modify synchronization settings as per your requirements.

syncAccount = true
syncSerial = true

━ How to find Module's APIs?

Head over to the sidebar (Modules) and select the module you want to view further more about.

Clone this wiki locally