Skip to content

GetCartPart

What a cart has in one slot.

GetCartPart(id, slot)
Parameter Type
id number the cart
slot string "body", "axle", "wheels", "load", "horse1" or "horse2"

string - the part (the default when it was never set); nil for no cart or a slot its kind has not

if GetCartPart(id, "load") ~= "none" then SendClientMessage(pid, COLOR_WHITE, "Mind the load.") end

GetCartParts · SetCartPart · the Carts group of the index