OnPlayerChangeCartSeat
A seated player moved to another seat of their cart.
After SetPlayerCartSeat (or PutPlayerInCart on the cart they sit in) - GetPlayerCart answers the new seat
already. From or to seat 0 of a free cart they took or let go of the reins.
Syntax
Section titled “Syntax”function OnPlayerChangeCartSeat(pid, id, from, to) -- ...end| Parameter | Type | |
|---|---|---|
pid |
number | the player |
id |
number | the cart |
from |
number | the seat they left |
to |
number | the seat they sit on now |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPlayerChangeCartSeat(pid, id, from, to) if to == 0 then SendClientMessage(pid, COLOR_WHITE, "You have the reins - W drives, X gets you off.") endendSee also
Section titled “See also”SetPlayerCartSeat · OnPlayerEnterCart · OnPlayerExitCart · the Carts group of the index
