OnPlayerExitVehicle
Description:
Callback OnPlayerExitVehicle is called when a player starts to exit a vehicle.
|
Parameters:
(playerid, vehicleid)
int | playerid | The ID of the player that is exiting a vehicle. |
int | vehicleid | The ID of the vehicle the player is exiting. |
Return Values:
This callback does not handle returns.
- It is always called first in filterscripts.
Examples:
public OnPlayerExitVehicle(playerid, vehicleid) { new string[35]; format(string, sizeof(string), "INFO: You are exiting vehicle %i", vehicleid); SendClientMessage(playerid, 0xFFFFFFFF, string); return 1; }
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnPlayerEnterVehicle: Called when a player starts to enter a vehicle.
- OnPlayerStateChange: Called when a player changes state.
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- RemovePlayerFromVehicle: Throw a player out of their vehicle.
- GetPlayerVehicleSeat: Check what seat a player is in.