NPC:OnVehicleStreamOut
From SA-MP Wiki
(Difference between revisions)
Revision as of 16:08, 20 April 2014 MP2 (Talk | contribs) ← Previous diff |
Current revision Ikkentim (Talk | contribs) (Added return value) |
||
Line 9: | Line 9: | ||
{{Parameters|vehicleid}} | {{Parameters|vehicleid}} | ||
{{Param|vehicleid|The vehicle that was streamed out.}} | {{Param|vehicleid|The vehicle that was streamed out.}} | ||
+ | |||
+ | {{NoReturnCallback}} | ||
<pawn> | <pawn> |
Current revision
Description:
This callback is called when a vehicle is streamed out for an NPC.
Note | For the player version of this callback, see OnVehicleStreamOut. |
(vehicleid)
vehicleid | The vehicle that was streamed out. |
Return Values:
This callback does not handle returns.
public OnVehicleStreamOut(vehicleid) { SendChat("A vehicle streamed out for me!"); return 1; }
[edit]
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- NPC:OnVehicleStreamIn: Called when the NPC streams in a vehicle.
- NPC:OnPlayerStreamIn: Called when a player is streamed by the NPC.
- NPC:OnPlayerStreamOut: Called when a player streams out from the NPC.