Configuration
Every setting of more_lib in config.lua and sv_config.lua, and the files you can change to connect your own scripts.
The settings are in backend/config/config.lua (shared) and backend/config/sv_config.lua (server only). The files in backend/modules and the openfunctions.lua files are not encrypted, so you can change them to use your own notification, progress bar, help key and phone script. The default value of each setting is shown, and where a setting is a table the default only names it. Restart more_lib after every change, and keep a copy of your files before an update.
MS.Frameworkauto- config.lua. Which framework more_lib uses: esx, qbcore or auto. With auto it uses the framework that is started (es_extended, qb-core or qbx_core). Set it yourself only if more_lib picks the wrong one.
MS.Settings.dev_modefalse- Prints debug messages to the console and adds a few test elements for developers (a test press-E point, a test blip and the command testfade). Leave it off on a live server.
MS.Settings.inventoryauto- Which inventory the item calls use: auto (ox_inventory when it exists on your server, otherwise the framework's inventory), native (the framework's inventory) or ox_inventory.
MS.Settings.fontGilroy-Medium- The font for 3D text (DrawText3D) and for MORE.GetFont. It must be a .gfx file in the stream folder of more_lib, written without .gfx. The folder holds Arame-Regular, Arame-Thin, Gilroy-Black, Gilroy-Light, Gilroy-Medium and Gilroy-Regular.
MS.Interactionfalse- false hides the dot over the press-E points of every MORE script (for example revive stations). The points and the Interact key keep working, and a point can show its own marker or ped. true shows the dot.
MS.Death.esxdown = esx:onPlayerDeath, revive = esx:onPlayerSpawn- The events your death script sends on ESX when a player goes down and when the player is revived. more_lib uses them for IsPlayerDead and the playerDied and playerRevived events. Change them if you use another ambulance script.
MS.Death.qbcoredown = qbx_medical:client:onPlayerDied, revive = hospital:client:Revive- The same for QBCore.
MS.Accounts.esxcash = money, bank = bank, black = black_money- Maps the neutral account keys cash, bank and black to the account names of ESX. Change the names on the right if your server uses other accounts.
MS.Accounts.qbcorecash = cash, bank = bank, black = crypto- The same for QBCore.
MS.Weapons85 weapons- The weapons that MORE.GetWeaponData knows, as the game's weapon name and a display name, for example WEAPON_PISTOL = Pistol. The file is backend/config/weapons.lua. Add a weapon that is missing to see its ammo.
MS.Permissionsgod, admin, mod- sv_config.lua, server only. QBCore only: when the core reports no group, these ACE groups are checked in this order for GetGroup.
MS.Telemetrytrue- sv_config.lua, server only. false turns off the heartbeat and the update check to more-scripts.com. With true, the server reports every started MORE script (its id and version) with the server id, the server name, the uptime, the player count and maximum, the framework and the server build, about every 5 minutes. It also checks about every hour for newer versions and prints at start whether each MORE script is up to date.
backend/modules/notify/client.lua and server.luauses more_hud, else esx:showNotification- The notification of MORE.Notify. Change these two files to use your own notification script.
backend/modules/progressbar/client.luaprogressType = default- default shows the library's progress bar. custom calls the progress bar of echo_hud, which is an example: replace that call with your own progress bar.
backend/modules/helpkey/client.luahelpKeyType = default- default shows the library's key prompt. custom uses the game's help box instead.
backend/modules/phone/server.luareads the phone_phones table- How the phone number for GetCharInfo is found. Change it if your phone script keeps its numbers somewhere else.
backend/client/openfunctions.lua, backend/server/openfunctions.lua, backend/shared/openfunctions.luahelper functions- The helper functions listed on the API page. A change in these files applies to every MORE script.
backend/imports.luathe MORE table- The MORE table and the menu. It is best left unchanged.
Key mappingsInteract E, Menu keys- Not set in the config: the Interact key (E) and the menu keys (arrow keys, Enter, Backspace) are key mappings that every player can rebind under Settings, Key Bindings, FiveM.
Files that stay encryptedeverything else- The files not named on this page are encrypted. The files that you can edit are the ones in escrow_ignore in fxmanifest.lua: the config files, imports.lua, the three openfunctions.lua files, and the notify, progressbar, helpkey and phone modules.
Last updated