Difference between revisions of "OnPlayerStartEnterVehicle"

From Onset Developer Wiki
(Created page with "{{Info|Event|Client|1.0}} {{FuncDescription|Called when a player presses the key to start entering a vehicle. You can return '''false''' in this event to stop the player from...")
 
 
Line 3: Line 3:
 
{{FuncDescription|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.}}
 
{{FuncDescription|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.}}
  
{{FuncSyntax|OnPlayerStartEnterVehicle(vehicle)}}
+
{{FuncSyntax|OnPlayerStartEnterVehicle(vehicle, seat)}}
 
{{FuncParam|vehicle|The vehicle identifier.}}
 
{{FuncParam|vehicle|The vehicle identifier.}}
 +
{{FuncParam|seat|The vehicle seat in which the player tries to get in.}}
  
 
== Example ==
 
== Example ==

Latest revision as of 09:17, 9 October 2019