alt.Player.local.seat
Get the player's seat if they are in a vehicle.
Note: Driver seat starts at -1 for natives.
Syntax
readonly seat: number;
Real World Example
const seat = alt.Player.local.seat;
if (seat === 1) {
console.log('You are the driver');
return;
}
alt.Player.local can also be a player instance from server