getRecommendedArms
Returns the arms (component 3) GTA recommends for a given garment, without applying them. Useful for previewing a uniform, or for deciding whether an outfit needs correcting before you commit it.
๐ก Syntax
local arms = exports['kartik-clothing']:getRecommendedArms(componentId, drawable, texture)๐ฅ Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
componentId | number | No | The component the garment sits in, usually 11 for tops. |
drawable | number | No | Drawable index of the garment. |
texture | number | Yes | Texture index. Defaults to 0. |
๐ค Returns
| Type | Description |
|---|---|
table | nil | { componentId, drawable, texture }, or nil when the game has no recommendation. |
[!NOTE] Addon clothing carries no shop-apparel metadata, so this returns
nilfor it every time. Pair arms with those garments using/setarmsinstead.
๐ป Example
local arms = exports['kartik-clothing']:getRecommendedArms(11, 84, 2)
if arms then
print(('That jacket wants arms %d/%d'):format(arms.drawable, arms.texture))
else
print('No recommendation - likely addon clothing')
end๐ Related
- fixArms: resolve and apply in one call.
- getForcedComponents