OnVehicleStreamOut
From SA-MP Wiki
OnVehicleStreamOut
Warning: This is a new callback working since SA-MP 0.3. It won't work in previous versions.
Important note: For the NPC version of this callback, check NPC:OnVehicleStreamOut.
This callback is called when a vehicle is streamed out from some player's client. A simpler definition would be when you see the grey vehicle icon dissapear on your map (from it being on your map), it means you have got far enough from the vehicle for San Andreas to unload (opposite of "stream") it. It then will call OnVehicleStreamOut.
(vehicleid, forplayerid)
| vehicleid | The vehicle that has been destreamed. |
| forplayerid | The player who has destreamed the vehicle. |
This function does not return a specific value, it's best to simply ignore it.
public OnVehicleStreamOut(vehicleid, forplayerid) { new string[80]; format(string, sizeof(string), "Your computer has just unloaded the vehicle ID %d", vehicleid); SendClientMessage(forplayerid, string); return 1; }
Related Callbacks
The following callbacks might be useful as well, as they're related to this callback in one way or another.
- OnVehicleStreamIn: Called when a player streams in a vehicle.
- OnPlayerStreamIn: Called when a player streams in another player.
- OnPlayerStreamOut: Called when a player streams out from other player.
