Skip to content

GetCartSeatCount

How many seats a cart has.

GetCartSeatCount(id)
Parameter Type
id number the cart

number - the seats (6 for the wagon: 0 to 5; 3 for the two-wheeler); 0 for anything that is not a cart

for seat = 0, GetCartSeatCount(id) - 1 do
local pid = GetCartSeatPlayer(id, seat)
Log(seat .. ": " .. (pid and GetPlayerName(pid) or "free"))
end

GetCartSeatPlayer · GetCartPassengers · the Carts group of the index