Skip to content

[FEATURE] Expose vehicle seat metadata and occupancy #294

Description

@ifBars

What would you like to see?

Extend S1API.Vehicles.LandVehicle with managed seat metadata and occupancy state.

A first version could expose a read-only VehicleSeatInfo collection containing:

  • stable seat index;
  • whether the seat is the driver seat;
  • whether the seat is occupied;
  • the wrapped player occupant when one is available;
  • seat occupancy change notifications.

Why would this help?

S1API already exposes vehicle wrappers and managed NPC vehicle entry/exit events from #243, but mods cannot determine which player occupies which native VehicleSeat without accessing game types directly. Seat-aware UI, co-op interactions, quests, and vehicle rules all need this missing read-only state.

Extra Context (Optional)

Keep forced entry, ejection, seat reservation, remote-player control, and direct RPC access out of the first version. Preserve native seat ordering and event timing, and do not expose native Player or VehicleSeat objects.

Validate driver/passenger transitions, disconnects, vehicle destruction, and wrapper cleanup separately on Mono and IL2CPP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LowVery minor issue, non gameplay hindering, fix all high prio firstenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions