Skip to main content

v3.1.1

Changed

  • Both menus now use a namespaced API. The documented way to reach them is MSK.Context.Register, MSK.Context.Show, MSK.Context.Update, MSK.Context.Hide, MSK.Context.GetOpen and the same set on MSK.Menu. This matches the rest of the library, where MSK.Input.Open and MSK.Cron.Create already work that way.

    Nothing breaks. The flat names introduced in v3.1.0 (MSK.RegisterContext, MSK.ShowMenu, MSK.UpdateContext and so on) point at the exact same functions and stay supported, and the exports are unchanged (exports.msk_core:RegisterContext(...)).

  • MSK.Menu.Hide replaces MSK.Menu.Close so it lines up with MSK.Context.Hide. MSK.Menu.Close remains as an alias.

Fixed

  • The Menu module leaked its internal navigation onto the public table. MSK.Menu.Move, MSK.Menu.SideScroll and MSK.Menu.Select were reachable inside msk_core but did not exist for consumer resources, so calling them from another script failed. They are module-internal now and no longer part of the public API.

This is a pure Lua change, the NUI is untouched. Only the two Menu files have to be replaced, web/dist can stay as it is.

Changed files

fxmanifest.lua
modules/Menu/client.lua
modules/Menu/server.lua