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, MSK.OnPlayer and client player helpers |
| Inventory | MSK.HasItem on the client |
| Entities | Closest and nearby peds, objects, vehicles and players, death detection |
| Vehicle | Vehicle queries, seats, plates, doors |
| Vehicle Properties | Read and apply colors, mods and damage, also from the server |
| Coords | Show / copy coordinates and admin commands |
| Points | Points with enter, exit and per-frame callbacks, closest and nearby points |
| Request | Stream models, anims, textures, audio banks, weapon assets, raycasts |
| World | Spawn point checks, ped mugshots, closest players |
| Notify | Notifications with icons, positions and in-place updates, help text, HUD text, subtitles, spinners |
| Scaleform | Freemode messages, popups, breaking news, MSK.Scaleform.New for any movie |
| Zones | Sphere, box and poly zones, plus the in-game Zone Creator |
| Keybind | Key bindings players can change, with press and release handlers |
| Controls | Disable game controls without your own loop |
| DUI | Web pages rendered into game textures |
| Marker | Markers stored once and drawn with one call |
| Anim | Play, stop and wait for animations and scenarios |
| Ace Permission | Client-side ace checks |
| Commands | MSK.RegisterCommand with ace support |
| UI | Input dialog, Numpad, Progressbar and circle, TextUI, Context Menu, Menu, Alert, Radial Menu, Skillcheck, player Settings and Clipboard |
See also the Shared functions (callbacks, math, string, table, timeout, vector) which work on both sides.