Skip to content

GetPlayerCart

The cart a player sits in, and the seat.

GetPlayerCart(pid)
Parameter Type
pid number the player

number, number - the cart’s entity id and the seat (0 = at the reins); nil when they sit in none

local cart, seat = GetPlayerCart(pid)
if cart and seat == 0 then SendClientMessage(pid, COLOR_WHITE, "Mind the road.") end

GetCartPassengers · PutPlayerInCart · the Carts group of the index