From the reference libraryRedM

Table

jo_libs/modules/table/index.md

Table

The Table module extends Lua's native table capabilities by adding powerful utility functions for enhanced table manipulation.

Include Table in your script

  1. To use the Table library, just add the initiator as a shared script inside of your fxmanifest.lua file.
shared_scripts {
  '@jo_libs/init.lua'
}

  1. Add the Table module inside the fxmanifest.lua (in lowercase)
jo_libs {
  'table',
}

You can now use the library inside of your resource with the table global variable.

Functions

Documentation for the Both side.

Back to documentation