OnPlayerStartEnterVehicle

From Onset Developer Wiki
Revision as of 07:17, 9 October 2019 by BlueMountains (talk | contribs)
OnPlayerStartEnterVehicle

Type: Event
Context: Client
Introduced: v1.0

Description

Called when a player presses the key to start entering a vehicle. You can return false in this event to stop the player from entering.

Syntax

OnPlayerStartEnterVehicle(vehicle, seat)
  • vehicle
    The vehicle identifier.
  • seat
    The vehicle seat in which the player tries to get in.

Example

__EDIT_ME__

See also

Game

Vehicle

Player

Weapon

Parachuting

Key

NPC

Object

Package

Pickup

Text

Vehicle

Web UI

Sound

Door

Network