NPC:OnVehicleStreamIn

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 21:15, 27 July 2010
Garsino (Talk | contribs)

← Previous diff
Revision as of 19:44, 23 April 2014
Ikkentim (Talk | contribs)
(Added return value)
Next diff →
Line 10: Line 10:
{{Parameters|vehicleid}} {{Parameters|vehicleid}}
{{Param|vehicleid|The vehicle that has been streamed.}} {{Param|vehicleid|The vehicle that has been streamed.}}
 +
 +{{NoReturnCallback}}
<pawn> <pawn>

Revision as of 19:44, 23 April 2014




NPC:OnVehicleStreamIn was added in SA-MP 0.3a This NPC callback was added in SA-MP 0.3a and will not work in earlier versions!


Image:32px-Circle-style-warning.png

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.


Parameters:
(vehicleid)
vehicleidThe vehicle that has been streamed.


Return Values:

This callback does not handle returns.


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 are related to this callback in one way or another.