NPC:OnNPCEnterVehicle

From SA-MP Wiki

Jump to: navigation, search

NPC:OnNPCEnterVehicle


Warning: This function was added in SA-MP version 0.3. It is not available in previous 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.


This function does not return a specific value.


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

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools