NPC:OnNPCEnterVehicle

From SA-MP Wiki

Jump to: navigation, search


NPC:OnNPCEnterVehicle was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Description:

Gets called when a NPC enters a vehicle.


Parameters:
(vehicleid, seatid)
vehicleidThe vehicleid from the Vehicle the NPC enters.
seatidThe seatid the NPC uses.


Return Values:

This function does not return any specific values.


Example Usage:

public OnNPCEnterVehicle(vehicleid, seatid)
{
    printf("OnNPCEnterVehicle ID: %d Seat: %d", vehicleid, seatid);
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
In other languages