Client Functions
Functions available on the client 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 mirrored MSK.Player table and client player helpers |
| Inventory | MSK.HasItem on the client |
| Entities | Closest entity/player helpers and death detection |
| Vehicle | Vehicle queries, seats, plates, doors |
| Coords | Show / copy coordinates and admin commands |
| Points | Spatial point registration & closest-point queries |
| Request | Stream models, anims, textures, scaleforms, raycasts |
| World | Spawn-point checks, ped mugshots, closest players |
| Notify | Notifications, help text, HUD text, subtitles, spinners |
| Scaleform | Freemode messages, popups, breaking news |
| Ace Permission | Client-side ace checks |
| Commands | MSK.RegisterCommand with ace support |
| UI | Input, Numpad, Progressbar, TextUI |
See also the Shared functions (callbacks, math, string, table, timeout, vector) which work on both sides.