GetPlayerCart
The cart a player sits in, and the seat.
Syntax
Section titled “Syntax”GetPlayerCart(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number, number - the cart’s entity id and the seat (0 = at the reins); nil when they sit in none
Example
Section titled “Example”local cart, seat = GetPlayerCart(pid)if cart and seat == 0 then SendClientMessage(pid, COLOR_WHITE, "Mind the road.") endSee also
Section titled “See also”GetCartPassengers · PutPlayerInCart · the Carts group of the index
