GetCartSeatCount
How many seats a cart has.
Syntax
Section titled “Syntax”GetCartSeatCount(id)| Parameter | Type | |
|---|---|---|
id |
number | the cart |
Returns
Section titled “Returns”number - the seats (6 for the wagon: 0 to 5; 3 for the two-wheeler); 0 for anything that is not a cart
Example
Section titled “Example”for seat = 0, GetCartSeatCount(id) - 1 do local pid = GetCartSeatPlayer(id, seat) Log(seat .. ": " .. (pid and GetPlayerName(pid) or "free"))endSee also
Section titled “See also”GetCartSeatPlayer · GetCartPassengers · the Carts group of the index
