GetCartPart
What a cart has in one slot.
Syntax
Section titled “Syntax”GetCartPart(id, slot)| Parameter | Type | |
|---|---|---|
id |
number | the cart |
slot |
string | "body", "axle", "wheels", "load", "horse1" or "horse2" |
Returns
Section titled “Returns”string - the part (the default when it was never set); nil for no cart or a slot its kind has not
Example
Section titled “Example”if GetCartPart(id, "load") ~= "none" then SendClientMessage(pid, COLOR_WHITE, "Mind the load.") endSee also
Section titled “See also”GetCartParts · SetCartPart · the Carts group of the index
