NPC:OnVehicleStreamIn
From SA-MP Wiki
NPC:OnVehicleStreamIn
Warning: This is a new NPC callback working since SA-MP 0.3. It won't work in previous versions.
Important note: For the player version of this callback, check OnVehicleStreamIn.
{{Description|This callback is called when a vehicle is streamed by the NPC. A simpler definition would be when the NPC sees the grey vehicle icon appear on his map.
(vehicleid)
| vehicleid | The vehicle that has been streamed. |
public OnVehicleStreamIn(vehicleid) { SendChat("Great! I have just loaded a vehicle!"); return 1; }
Related Callbacks
The following callbacks might be useful as well, as they're related to this callback in one way or another.
- NPC:OnPlayerStreamIn: Called when a player is streamed by the NPC.
- NPC:OnPlayerStreamOut: Called when a player streams out from the NPC.
- NPC:OnVehicleStreamOut: Called when the NPC streams out a vehicle.
