OnPlayerExitVehicleAttempt

From GTA Network Wiki
Jump to: navigation, search

OnPlayerExitVehicleAttempt
Server-Side Function

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

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

Attribute

[ServerEvent(Event.PlayerExitVehicleAttempt)]

Required Parameters

  • Client: the player attempting to exit the vehicle.
  • Vehicle: the vehicle.

Usage example(s)

Example Description

[ServerEvent(Event.PlayerExitVehicleAttempt)]
public void OnPlayerExitVehicleAttempt(Client player, Vehicle vehicle) 
{
    // Some code..
}

Changelog

Version Description
0.3.0.3 Release.

References