Skip to content

GetCartPartNames

The parts a slot takes - a shop’s shelf.

GetCartPartNames(slot [, kind])
Parameter Type
slot string "body", "axle", "wheels", "load", "horse1" or "horse2"
kind string the cart’s kind; nil = "wagon" (optional)

table - the part names, the default first (the horses’ coats in the game’s order); {} for a slot the kind has not

SendClientMessage(pid, COLOR_WHITE, "Loads: " .. table.concat(GetCartPartNames("load"), ", "))

GetCartPartSlots · SetCartPart · the Carts group of the index