note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
OnNPCEnterVehicle
Description
This callback is called when a NPC enters a vehicle.
Name | Description |
---|---|
vehicleid | The vehicle ID the NPC enter |
seatid | The seatid the NPC uses |
Examples
public OnNPCEnterVehicle(vehicleid, seatid)
{
printf("OnNPCEnterVehicle ID: %d Seat: %d", vehicleid, seatid);
return 1;
}
Related Callbacks
The following callbacks might be useful, as they're related to this callback in one way or another.
- OnNPCExitVehicle: This callback is called when a NPC leaves a Vehicle.