onPlayerEnteredVehicle
From Liberty Unleashed Wiki
This is called when a player has successfully entered a train.
Syntax
function onPlayerEnteredTrain( Player player )
Arguments
- player - The player who entered a train
Returns
This event does not handle return values.
Example
This example will message a player when they enter a train.
function onPlayerEnteredTrain( player ) { MessagePlayer( "You entered a train.", player ); return 1; }
Notes
The function MessagePlayer was used in this example. More info about it can be found in the corresponding page.