Server Functions
Functions available on the server side. Import the core in your resource's fxmanifest.lua and call them through the global MSK table (or via exports.msk_core:*):
shared_script '@msk_core/import.lua'
Overview
| Page | Description |
|---|---|
| Player | The unified player object, job and gang definitions, the mirrored table |
| Inventory | MSK.HasItem, MSK.RegisterItem and the inventory bridge |
| Entities | Closest entity/player helpers |
| Vehicle | Server-side vehicle queries and MSK.SpawnVehicle |
| Vehicle Store | The owned-vehicle table of every framework behind one API |
| Coords | Show / copy coordinates for a player |
| World | Spawn-point checks, closest players, MSK.AddWebhook |
| Notify | Send notifications to a player by server id, or to everyone |
| Scaleform | Trigger scaleforms on a player |
| Ace Permission | Ace checks, AddAce / AddPrincipal |
| Commands | MSK.RegisterCommand with ace restriction |
| Society | Company and society account money |
| Offline | Bank money by identifier, online or offline, and the character table |
| Ban System | Identifier/token bans and ban commands |
| Cron | Schedule recurring jobs by interval, clock time or cron expression |
| Disconnect Logger | Log player disconnects |
| Version Checker | MSK.Check version & dependency checks |
| Logger | Send logs to Grafana Loki, Datadog or Fivemanage |
| Events | Send one client event to many players or everyone in range |
| Files | List the files in a folder of a resource |
| txAdmin | Show txAdmin announcements, messages and restart warnings as MSK notifications |
| UI | Server-side Input dialog, Numpad (code checked on the server), Progressbar, TextUI, Context Menu, Menu, Alert, Skillcheck |
See also the Shared functions (callbacks, math, string, table, timeout, vector) which work on both sides.