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!


Gets called when a NPC enters a vehicle.


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


ReturnsThis function doesn't return a specific value


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