Skip to content

GetCartProps

The props on a cart - for a mode that saves a player’s cart.

GetCartProps(id)
Parameter Type
id number the cart

table - {{id =, model =, x =, y =, z =, pitch =, roll =, yaw =, scale =, material =}, ...} (material nil for the model’s own); {} for none

-- kept with the player's cart; AddCartProp puts them back on the next start
SAVED[owner] = GetCartProps(cart)
for _, p in ipairs(SAVED[owner]) do
AddCartProp(newCart, p.model, p.x, p.y, p.z, p.pitch, p.roll, p.yaw, p.scale, p.material)
end

AddCartProp · the Carts group of the index