GetCartParts
Every part of a cart - what it looks like, to show, to price or to save.
Syntax
Section titled “Syntax”GetCartParts(id)| Parameter | Type | |
|---|---|---|
id |
number | the cart |
Returns
Section titled “Returns”table - {body =, axle =, wheels =, load =, horse1 =, horse2 =} (a two-wheeler’s: body, wheels, load, horse1); {} for anything that is not a cart
Example
Section titled “Example”-- a player's cart, kept with their account: the parts, then CreateCart(..., parts) at the next loginlocal p = GetCartParts(cart)Log(string.format("%s's cart: %s body, %s wheels, %s load", GetPlayerName(pid), p.body, p.wheels, p.load))See also
Section titled “See also”GetCartPart · SetCartParts · CreateCart · the Carts group of the index
