Skip to main content

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

PageDescription
PlayerThe mirrored MSK.Player table and client player helpers
InventoryMSK.HasItem on the client
EntitiesClosest entity/player helpers and death detection
VehicleVehicle queries, seats, plates, doors
CoordsShow / copy coordinates and admin commands
PointsSpatial point registration & closest-point queries
RequestStream models, anims, textures, scaleforms, raycasts
WorldSpawn-point checks, ped mugshots, closest players
NotifyNotifications, help text, HUD text, subtitles, spinners
ScaleformFreemode messages, popups, breaking news
Ace PermissionClient-side ace checks
CommandsMSK.RegisterCommand with ace support
UIInput, Numpad, Progressbar, TextUI

See also the Shared functions (callbacks, math, string, table, timeout, vector) which work on both sides.