Squirrel/Server/Events/Vehicle/onPlayerExitingVehicle
From Liberty Unleashed Wiki
This is called when a player exits a vehicle, for any reason
Syntax
function onPlayerExitVehicle( player, vehicle, isPassenger )
Parameters
- player - The player pointer
- vehicle - The vehicle the player is exiting
- isPassenger - A boolean which tells whether or not the player was a passenger in the vehicle
Example
This example will message the player when they exit a vehicle.
function onPlayerExitVehicle( player, vehicle, isPassenger ) { MessagePlayer( "You have exited a " + vehicle + ".", player ); }
Notes
The function MessagePlayer was used in in this example. More info about it can be found in the corresponding page.