Page cover

πŸ—½FJSF_LIB

fjsf_lib is a shared utility library for FiveM that provides reusable helpers and systems which can be used on both client and server side.


circle-info

Download


Installation

  1. Download fjsf_lib

  2. Place the folder into your resources directory, for example:

    resources/[libs]/fjsf_lib

Server configuration

circle-exclamation

fjsf_lib must be ensured before any resource that uses it.

Add this line to your server.cfg:

ensure fjsf_lib

If another resource starts before fjsf_lib, its functions will not be available.


Usage methods

There are two supported ways to use fjsf_lib.


Method 1: Shared global access

This method exposes all library functions through a global fjsf table.

Setup

Add the following file to your resource:

Example fxmanifest.lua:

Usage


Method 2: Using exports

All functions are also available through exports.

Usage

Last updated