GetCartPartMaterial
The material a part was given, or nil for its own.
Syntax
Section titled “Syntax”GetCartPartMaterial(id, slot)| Parameter | Type | |
|---|---|---|
id |
number | the cart |
slot |
string | "body", "axle", "wheels" or "load" |
Returns
Section titled “Returns”string - the .mtl path, or nil
Example
Section titled “Example”local wood = GetCartPartMaterial(cart, "body") or "its own"See also
Section titled “See also”SetCartPartMaterial · the Carts group of the index
