From c38e42a488ecde8e3e1bbcd3585afe41f1dcad8e Mon Sep 17 00:00:00 2001 From: Quentin Date: Fri, 13 Oct 2023 00:14:02 +0200 Subject: [PATCH] Feat(lua-doc): Make sure that the MPX -> MP0/MP1 behavior for stats function is documented. (#2251) --- docs/lua/tables/stats.md | 1 + src/lua/bindings/stats.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/lua/tables/stats.md b/docs/lua/tables/stats.md index af374f12..e5c18559 100644 --- a/docs/lua/tables/stats.md +++ b/docs/lua/tables/stats.md @@ -1,6 +1,7 @@ # Table: stats Table for manipulating GTA stats. +For stats that get prefixed by either `MP0` or `MP1`, you can use `MPX` instead and the menu will resolve to the correct number automatically. ## Functions (21) diff --git a/src/lua/bindings/stats.cpp b/src/lua/bindings/stats.cpp index 7405321d..a6eb1d4d 100644 --- a/src/lua/bindings/stats.cpp +++ b/src/lua/bindings/stats.cpp @@ -8,6 +8,7 @@ namespace lua::stats // Lua API: Table // Name: stats // Table for manipulating GTA stats. + // For stats that get prefixed by either `MP0` or `MP1`, you can use `MPX` instead and the menu will resolve to the correct number automatically. // Lua API: Function // Table: stats