OnPlayerEnterVehicleAttempt

From GTA Network Wiki
Jump to: navigation, search

OnPlayerEnterVehicleAttempt
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Invoked when a player attempts to enter a vehicle (pressing the F button)

Attribute

[ServerEvent(Event.PlayerEnterVehicleAttempt)]

Required Parameters

  • Client: the player.
  • Vehicle: the vehicle.
  • byte: the seatID.

Usage example(s)

[ServerEvent(Event.PlayerEnterVehicleAttempt)]
public void OnPlayerExitVehicleHandler(Client player, Vehicle veh, byte seatID)
{
    // Some code
}

Changelog

Version Description
0.3.0.3 Release.

References