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 | Player getters (GetPlayer, GetPlayers, …) and the mirrored table |
| Inventory | MSK.HasItem, MSK.RegisterItem and the inventory bridge |
| Entities | Closest entity/player helpers |
| Vehicle | Server-side vehicle queries |
| Coords | Show / copy coordinates for a player |
| World | Spawn-point checks, closest players, MSK.AddWebhook |
| Notify | Send notifications to a player by server id |
| Scaleform | Trigger scaleforms on a player |
| Ace Permission | Ace checks, AddAce / AddPrincipal |
| Commands | MSK.RegisterCommand with ace restriction |
| Society | Company / society account money |
| Offline | Offline player bank money |
| Ban System | Identifier/token bans and ban commands |
| Cron | Schedule recurring jobs |
| Disconnect Logger | Log player disconnects |
| Version Checker | MSK.Check version & dependency checks |
| UI | Server-side Input, Numpad, Progressbar, TextUI |
See also the Shared functions (callbacks, math, string, table, timeout, vector) which work on both sides.