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.
Syntax
Section titled “Syntax”GetCartSeatPlayer(id, seat)| Parameter | Type | |
|---|---|---|
id |
number | the cart |
seat |
number | the seat (0 = at the reins) |
Returns
Section titled “Returns”number - the player’s id; nil when the seat is free (or there is none)
Example
Section titled “Example”local driver = GetCartSeatPlayer(id, 0)if driver then SendClientMessage(driver, COLOR_WHITE, "Mind the ford ahead.") endSee also
Section titled “See also”GetCartSeatCount · GetPlayerCart · SetPlayerCartSeat · the Carts group of the index
