Skip to content

GetCartHorse

The player’s horse hitched in a slot of a cart.

GetCartHorse(id, slot)
Parameter Type
id number the cart
slot number 1 or 2

number - the horse, or nil (the cart’s own horse, none, or not a cart)

local horse = GetCartHorse(cart, 1)

HitchHorse · GetHorseCart · the Carts group of the index