Kartik Scripts

recommendedArmsFor

Server export that retrieves the authored recommended arms (component 3) for a specific garment variation.

💡 Syntax

local arms = exports['kartik-clothing']:recommendedArmsFor(gender, kind, itemId, drawable, texture)

📤 Parameters

  • gender (string): 'male', 'female', or 'any'.
  • kind (string): 'component' or 'prop'.
  • itemId (number): Component or prop slot ID (e.g. 11 for tops).
  • drawable (number): Garment drawable variation ID.
  • texture (number): Garment texture variation ID.

📥 Return Values

  • arms (table|nil): { drawable = number, texture = number } if an authored arm recommendation exists; nil otherwise.

⚙️ Example Usage

local arms = exports['kartik-clothing']:recommendedArmsFor('male', 'component', 11, 84, 0)
if arms then
    print("Recommended Arms:", arms.drawable, arms.texture)
end

On this page