103 online 3 members  + Join RP Base  +
FreeScriptQBCoreESX

msk_core

by MSK-Scripts  ·  version 4.1.0  ·  updated 6 days ago

No reviews yet

Downloads
0
Reviews
0
Size
3 MB
Code check
Checked
Licence
LGPL-3.0
Released
Nov 2026

Our core library for our resources, providing common utilities and more

msk_core
The shared library behind every MSK Scripts resource.

Discord · Documentation · Releases · VS Code Extension

MSK Core gives you a clean framework abstraction (ESX, QBCore, Qbox — or fully STANDALONE), a modern React-based NUI and a large set of helper functions, all exposed through a single global MSK table that any resource can import in one line.
✨ Features
  • Framework bridge — write once, run on ESX / QBCore / Qbox / STANDALONE (Config.Framework = 'AUTO'). One player shape everywhere, multijob included
  • Inventory bridge — ox_inventory, core_inventory, jaksam_inventory, ESX/Chezza default, or your own custom
  • Lazy-loaded modules — a module is compiled into your resource only when you first use it
  • Modern NUI — Notify, Input dialog, Alert, Numpad, Progressbar and circle, TextUI, Context menu, Menu, Radial menu, Skill check and a player settings menu (React + Vite + TypeScript, fully offline/bundled)
  • Dual API — every function is available as MSK.Function(...) and exports.msk_core:Function(...)
  • Utilities — callbacks, cron jobs, ace permissions, commands, Discord webhooks, version & dependency checks, math/string/table/vector helpers and more
📦 Requirements Optional 🚀 Installation
  1. Download the latest release and drop msk_core into your resources folder.
  2. Make sure it starts after your framework/inventory and before any resource that uses it:

ensure oxmysql
ensure es_extended      # or qb-core / qbx_core (optional)
ensure ox_inventory     # or another inventory (optional)
ensure msk_core

⚠️ Lua 5.4 is required. Every resource that imports the core must set lua54 'yes' in its fxmanifest.lua.
🔌 Usage
Add the import to your resource's fxmanifest.lua:

lua54 'yes'

shared_script '@msk_core/import.lua'

You now have the global MSK table everywhere in that resource:

-- Notification
MSK.Notification('MSK Scripts', 'Welcome to my server!', 'success', 5000)

-- Server callback (client side)
local money = MSK.Trigger('myscript:getMoney', 'bank')

-- Players
local players = MSK.GetPlayers()

Everything is also available as an export:

exports.msk_core:Notification('Title', 'This is a Notification', 'general', 5000)

Eager loading (optional)
Modules load on first use. To compile one up front, list it in your fxmanifest.lua:

shared_script '@msk_core/import.lua'

msk_core 'Callback'
msk_core 'Player'

🧩 VS Code IntelliSense
Get autocompletion, signatures and type checking for the whole MSK.* API with the MSK Core (FiveM) IntelliSense extension:

ext install musiker15.msk-core-lua

More in the documentation and the extension repository.
🖼️ UI

Notification
TextUI
Progressbar
Input
Numpad
🛠️ Developing the NUI
The NUI lives in web/ (React + Vite + TypeScript + Tailwind v4). The built web/dist is committed, so the server never needs npm.

cd web
npm install
npm run dev     # browser dev with the DevPanel
npm run build   # rebuild web/dist — commit it after UI changes

📚 Documentation
Full API reference: docu.msk-scripts.de/docs/msk_core
📄 License
msk_core is licensed under the GNU Lesser General Public License v3.0 or later (LGPL-3.0-or-later).

This means the core itself is open and must stay open, but any resource — free or paid — may use msk_core as a dependency without being forced to adopt the same license. See LICENSE (and GPL-3.0.txt, which the LGPL incorporates).

The names, logos, and brands "MSK Scripts" and "Musiker15" are trademarks of the Licensor and are not covered by the LGPL.

Made with 💚 by MSK Scripts | Musiker15