Introduction
The shared library behind every MORE Scripts resource: one API for ESX and QBCore, plus menus, notifications, map blips and helper functions
more_lib is the shared library behind every MORE Scripts resource. It puts ESX and QBCore behind one API, so a script calls MORE.GetMoney(...) and the library runs it on whichever framework your server uses. It also brings the shared screen elements (notifications, progress bar, help key prompt, menus, map blips and press-E points) and a set of helper functions. You install it once and every MORE script uses it, and you can call its functions from your own resources too.
Check dependencies and start order
Start more_lib after oxmysql, your framework and your inventory, and before every MORE script. It needs oxmysql and ESX or QBCore. On QBCore, also install more_hud, or the MORE notifications don't show. At start, the server console tells you whether each MORE script is up to date; MS.Telemetry in sv_config.lua turns this off.
Features
- One API for ESX and QBCore: players, jobs, groups, money, items, weapons and metadata work the same on both frameworks, and ox_inventory is used automatically when it runs.
- Server callbacks that behave the same on every framework, with an answer that is delivered once, even when your server function fails.
- Shared screen elements: notifications, a progress bar, and a key prompt for press-E actions.
- A GTA-style menu with buttons, checkboxes, lists, sliders and badges that takes no mouse focus, so players can keep walking or driving.
- Press-E world points with a dot, a marker, your own picture or a ped, and map blips with an info card on the pause map.
- A screen fade with the MORE logo, a Teleport that fades out and in, and death detection through IsPlayerDead.
- Helper functions for models, animations, entities, vehicles, raycasts, 3D text, cooldowns, JSON columns and Discord webhooks.
- Events for the framework, the player, job, money, items, death, the cache and the pause menu, and an update check for your MORE scripts that you can turn off.
Requirements
oxmysqlresourcerequiredRequired. Database access for the library and the MORE scripts that use it.
es_extendedresourcedefault ESX. You need ESX or QBCore: one of the two frameworks.
qb-core or qbx_coreresourcedefault QBCore. Both QBCore and Qbox (qbx_core) are recognised.
ox_inventoryresourcedefault Optional. When it runs on your server, all item calls go through it automatically.
more_hudresourcedefault QBCore only: it shows the MORE notifications. Without it nothing appears when a MORE script notifies a player.
Last updated