From a0acdbd1f26600e54a4a05447fa78edcfc0f53ff Mon Sep 17 00:00:00 2001 From: Freddy <33939455+freedy69@users.noreply.github.com> Date: Tue, 20 Feb 2024 18:56:30 +0400 Subject: [PATCH] Document GET_TATTOO_SHOP_DLC_ITEM_INDEX (#1023) * Document GET_TATTOO_SHOP_DLC_ITEM_INDEX Added information and fixed the parameters. * Update N_0x10144267dd22866c.md Fixes a few issues * Forgot to edit the parameter types: * Update N_0x10144267dd22866c.md * Update N_0x10144267dd22866c.md Prettier formatting. * Rename N_0x10144267dd22866c.md to GetTattooShopDlcItemIndex.md File-name change. --------- Co-authored-by: ammonia-cfx <38232208+4mmonium@users.noreply.github.com> --- FILES/GetTattooShopDlcItemIndex.md | 22 ++++++++++++++++++++++ FILES/N_0x10144267dd22866c.md | 29 ----------------------------- 2 files changed, 22 insertions(+), 29 deletions(-) create mode 100644 FILES/GetTattooShopDlcItemIndex.md delete mode 100644 FILES/N_0x10144267dd22866c.md diff --git a/FILES/GetTattooShopDlcItemIndex.md b/FILES/GetTattooShopDlcItemIndex.md new file mode 100644 index 000000000..a4b76cb31 --- /dev/null +++ b/FILES/GetTattooShopDlcItemIndex.md @@ -0,0 +1,22 @@ +--- +ns: FILES +aliases: ["0x10144267DD22866C"] +--- +## GET_TATTOO_SHOP_DLC_ITEM_INDEX + +```c +// 0x10144267DD22866C +int GET_TATTOO_SHOP_DLC_ITEM_INDEX(cs_type(Hash) int character, int collection, int preset); +``` + +``` +NativeDB Introduced: v2189 +``` + +## Parameters +* **character**: AKA eFaction in shop_tattoo.meta. Which character this tattoo belongs to. See [GET_NUM_TATTOO_SHOP_DLC_ITEMS](#_0x278F76C3B0A8F109). +* **collection**: Which collection this tattoo belongs to. If you specify `-1`, it will check all collections. +* **preset**: Which preset this tattoo belongs to. + +## Return value +Returns the actual index (Not ID from `shop_tattoo.meta`) from `0` to [GET_NUM_TATTOO_SHOP_DLC_ITEMS](#_0x278F76C3B0A8F109), or `-1` (if it failed to find the tattoo) of a tattoo. diff --git a/FILES/N_0x10144267dd22866c.md b/FILES/N_0x10144267dd22866c.md deleted file mode 100644 index 72dd17f78..000000000 --- a/FILES/N_0x10144267dd22866c.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -ns: FILES ---- -## _0x10144267DD22866C - -```c -// 0x10144267DD22866C -int _0x10144267DD22866C(Hash overlayHash, Any p1, int character); -``` - -Returns some sort of index/offset for overlays/decorations. - -``` -Character types: -0 = Michael, -1 = Franklin, -2 = Trevor, -3 = MPMale, -4 = MPFemale -``` - -``` -NativeDB Introduced: v2189 -``` - -## Parameters -* **overlayHash**: -* **p1**: -* **character**: