Skip to content

GetCartPull

What a cart’s team pulls against what it carries, and the pace that leaves - for a mode’s own rules and messages.

GetCartPull(id)
Parameter Type
id number the cart

table - {horses =, pull =, weight =, ratio =, maxSpeed =, stamina =, tired =}: the horses in front of it, what they pull and what the cart weighs (kilograms), the weight against the pull (math.huge with no horse), the top pace it allows (metres a second), the team’s stamina and whether it walks to rest; nil for no cart

local p = GetCartPull(cart)
if p.ratio > 1.6 then SendClientMessage(driver, COLOR_RED, "Too heavy - the horses can only walk.") end

SetCartLoad · HitchHorse · SetHorseTypeRule · the Carts group of the index