Skip to content

GetCartPartMaterial

The material a part was given, or nil for its own.

GetCartPartMaterial(id, slot)
Parameter Type
id number the cart
slot string "body", "axle", "wheels" or "load"

string - the .mtl path, or nil

local wood = GetCartPartMaterial(cart, "body") or "its own"

SetCartPartMaterial · the Carts group of the index