GetCartPartNames
The parts a slot takes - a shop’s shelf.
Syntax
Section titled “Syntax”GetCartPartNames(slot [, kind])| Parameter | Type | |
|---|---|---|
slot |
string | "body", "axle", "wheels", "load", "horse1" or "horse2" |
kind |
string | the cart’s kind; nil = "wagon" (optional) |
Returns
Section titled “Returns”table - the part names, the default first (the horses’ coats in the game’s order); {} for a slot the kind has not
Example
Section titled “Example”SendClientMessage(pid, COLOR_WHITE, "Loads: " .. table.concat(GetCartPartNames("load"), ", "))See also
Section titled “See also”GetCartPartSlots · SetCartPart · the Carts group of the index
