Skip to main content

OnNPCEnterVehicle

Description

This callback is called when a NPC enters a vehicle.

NameDescription
vehicleidThe vehicle ID the NPC enter
seatidThe seatid the NPC uses

Examples

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

The following callbacks might be useful, as they're related to this callback in one way or another.