GetCartHorse
The player’s horse hitched in a slot of a cart.
Syntax
Section titled “Syntax”GetCartHorse(id, slot)| Parameter | Type | |
|---|---|---|
id |
number | the cart |
slot |
number | 1 or 2 |
Returns
Section titled “Returns”number - the horse, or nil (the cart’s own horse, none, or not a cart)
Example
Section titled “Example”local horse = GetCartHorse(cart, 1)See also
Section titled “See also”HitchHorse · GetHorseCart · the Carts group of the index
