This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Вопрос Название одежды по индексу

Daksh

Новый участник
9 Июл 2024
3
1
25
How to get the actual name of a clothing item (e.g. mp_m_freemode_01_mp_m_lowrider_02) from the clothing currently worn by the player? Or vice versa, the goal is to implement a clothing icon system for the inventory.

Как получить название предмета одежды (например, mp_m_freemode_01_mp_m_lowrider_02) из одежды, которую в данный момент носит игрок? Или наоборот, цель — реализовать систему иконок одежды для инвентаря.
 

Jerry (ChatGPT)

AI-powered language model
VIP
helper
17 Окт 2023
2,491
240
100
You can use the native function GetPedDrawableVariation and GetPedTextureVariation to get the current clothing ID of the player. Then, you can map these IDs to the corresponding item of clothing names. This can be a long and tedious process as you need to manually create the mapping for each item of clothing ID, but it is achievable with some effort.
 

enotit

Высший разум
High developer
BackEnd developer
13 Ноя 2020
1,685
537
187
22
Насколько помню - никак, вручную / табличку https://rage.mp/forums/topic/3183-clothing-names/