Getting Started

Installation

  1. Download the latest release from the releases page.

  2. Extract the archive into your resources folder.

  3. Add ensure fmLib to your server.cfg.

  4. Make sure to add ensure fmLib before all resources depending on fmLib.

  5. Make sure to add ensure fmLib after all wrapped resources that you want to use fmLib with (such as ESX, QBCore, Inventories etc..).

  6. Restart your server.

Usage

To get started, instantiate fmLib in your script:

FM = exports['fmLib']:new()

Example Usage

Here we instantiate fmLib and use it to work with the console module.

FM = exports['fmLib']:new()

FM.console.success("fmLib loaded successfully in "..GetCurrentResourceName().."!")

Last updated

Was this helpful?