Skip to content
Aviril edited this page Mar 7, 2024 · 37 revisions

━ How to get started?

  1. Head over to Assetify.library's releases and download the latest build.
  2. Head over to DBify.library'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.

━ How to Initialize the Module?

Add the below code once in either of the shared .lua script of the resource you want to use within:

--Declare it globally only once
loadstring(exports.assetify_library:import("scheduler"))()

assetify.scheduler.execOnModuleLoad(function()
  assetify.loadModule("DBify_Library", {"shared", "server"})
end)

━ How to find Module APIs?

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