Skip to content

SetCartParts

Changes several parts of a cart at once.

Each slot = part as SetCartPart takes it; the ones it refuses leave their slot as it was.

SetCartParts(id, parts)
Parameter Type
id number the cart
parts table {body =, axle =, wheels =, load =, horse1 =, horse2 =} - any of them

boolean - false when any was refused (the others are set)

-- the cartwright's finest: a covered wagon and a pair of greys
SetCartParts(cart, {body = "b_covered", axle = "b_covered", horse1 = "light_grey", horse2 = "dark_grey"})

SetCartPart · GetCartParts · the Carts group of the index