GetCartProps
The props on a cart - for a mode that saves a player’s cart.
Syntax
Section titled “Syntax”GetCartProps(id)| Parameter | Type | |
|---|---|---|
id |
number | the cart |
Returns
Section titled “Returns”table - {{id =, model =, x =, y =, z =, pitch =, roll =, yaw =, scale =, material =}, ...} (material nil for the model’s own); {} for none
Example
Section titled “Example”-- kept with the player's cart; AddCartProp puts them back on the next startSAVED[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)endSee also
Section titled “See also”AddCartProp · the Carts group of the index
