Skip to content

GetCartParts

Every part of a cart - what it looks like, to show, to price or to save.

GetCartParts(id)
Parameter Type
id number the cart

table - {body =, axle =, wheels =, load =, horse1 =, horse2 =} (a two-wheeler’s: body, wheels, load, horse1); {} for anything that is not a cart

-- a player's cart, kept with their account: the parts, then CreateCart(..., parts) at the next login
local p = GetCartParts(cart)
Log(string.format("%s's cart: %s body, %s wheels, %s load", GetPlayerName(pid), p.body, p.wheels, p.load))

GetCartPart · SetCartParts · CreateCart · the Carts group of the index