NPC:OnNPCEnterVehicle
From SA-MP Wiki
Description:
Gets called when a NPC enters a vehicle.
(vehicleid, seatid)
vehicleid | The vehicleid from the Vehicle the NPC enters. |
seatid | The 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.
- NPC:OnNPCExitVehicle: When a NPC leaves a Vehicle.