Skip to content

GetCartSeatPlayer

Who sits on one seat of a cart.

A player still climbing in counts - the seat is theirs from the moment the server gave it.

GetCartSeatPlayer(id, seat)
Parameter Type
id number the cart
seat number the seat (0 = at the reins)

number - the player’s id; nil when the seat is free (or there is none)

local driver = GetCartSeatPlayer(id, 0)
if driver then SendClientMessage(driver, COLOR_WHITE, "Mind the ford ahead.") end

GetCartSeatCount · GetPlayerCart · SetPlayerCartSeat · the Carts group of the index