Skip to content

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.

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

nothing

function OnPlayerChangeCartSeat(pid, id, from, to)
if to == 0 then SendClientMessage(pid, COLOR_WHITE, "You have the reins - W drives, X gets you off.") end
end

SetPlayerCartSeat · OnPlayerEnterCart · OnPlayerExitCart · the Carts group of the index