onClientEnteredVehicle

From Liberty Unleashed Wiki
Revision as of 16:41, 20 February 2015 by Grand Team Unleashed (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This is called when the local player has successfully entered a vehicle.

Syntax

  1. function onClientEnteredVehicle ( pointer Vehicle, int Seat )

Arguments

  • pVehicle - The pointer of the vehicle the player entered
  • iSeat - The ID of the passenger seat.

Returns

This event does not handle return values.

Example

  1.  
  2. function onClientEnteredVehicle ( pVehicle, iSeat) {
  3.  
  4. // Some code
  5. }
  6.  

Notes

The function Message was used in this example. More info about it can be found in the corresponding page.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox