Skip to main content

SetPlayerIntoVehicle

Sets/warps player into the vehicle seat.

  • player: parameter input should be in Player type
  • vehicle: parameter input should be in NetHandle type
  • seat: Use -1 for driver seat and 0+ for passenger seats. Parameter input should be in int type

{{#tag:syntaxhighlight| Player.SetPlayerIntoVehicle(player, vehicle, -1); |lang=csharp}} }}