Installation

How to install more_lib and start it before your MORE scripts

more_lib is the shared library that every MORE Scripts resource needs. Install it first and start it before any other MORE script.

  1. 1

    Download the resource

    Extract the more_lib folder into your server's resources folder, for example resources/[more-scripts]/more_lib. Keep the folder name more_lib, because the other MORE scripts look for that name. The library needs no database tables of its own, so there is no SQL file to import.

  2. 2

    Install what it depends on

    Install oxmysql and one framework: ESX (es_extended) or QBCore (qb-core or qbx_core). ox_inventory is optional: when it runs on your server, all item calls go through it automatically. On QBCore, also install more_hud, because without it the MORE notifications don't show.

  3. 3

    Configure the resource

    Adjust backend/config/config.lua and backend/config/sv_config.lua to your server. The defaults work with both frameworks, because more_lib detects the framework that is started. The Configuration page lists every setting.

  4. 4

    Start the server

    Add the lines below to your server.cfg in this order: more_lib after oxmysql, your framework and your inventory, and before every MORE script.

server.cfg
1ensure oxmysql2ensure es_extended      # or qb-core / qbx_core3ensure ox_inventory     # optional4ensure more_lib5ensure more_fuelsys     # any MORE script goes after the library

Updating and things to know

To update, replace the resource folder and keep your edited config.lua, sv_config.lua and module files. After updating, restart the server, or restart every MORE script after more_lib, so that all of them use the new callbacks. At start, the server console prints for every MORE script whether it is up to date. MS.Telemetry in sv_config.lua turns this check and the heartbeat to more-scripts.com off (the Configuration page lists what is sent). Until the framework is ready, calls to the library return nothing, so always start your framework first.

Last updated