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