Kartik Scripts

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

ParameterTypeOptionalDescription
componentIdnumberNoThe component the garment sits in, usually 11 for tops.
drawablenumberNoDrawable index of the garment.
texturenumberYesTexture index. Defaults to 0.

๐Ÿ“ค Returns

TypeDescription
table | nil{ componentId, drawable, texture }, or nil when the game has no recommendation.

[!NOTE] Addon clothing carries no shop-apparel metadata, so this returns nil for it every time. Pair arms with those garments using /setarms instead.

๐Ÿ’ป 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

On this page