Module nlit

Main global module of Nlit’s addons

Functions

AddAllInFolder (folderpath, bDontinclude) AutoExecuter and files adder.


Functions

AddAllInFolder (folderpath, bDontinclude)
AutoExecuter and files adder. Adds folder files on server or client, depends of file extention. Example: file_cl.lua will be added to client, and file_sv.lua will be added to server, file.lua will be added to both. file_dis.lua will disable adding.

Parameters:

  • folderpath string
  • bDontinclude boolean Dont include files in folders

Usage:

    nlit:AddAllInFolder('my-folder-in-lua-directory')
    -- true for add to client scripts, but not execute the code
    nlit:AddAllInFolder('my-code/subfolder',true)
generated by LDoc 1.5.0 Last updated 2024-04-15 17:47:35