IsVehicleStreamedIn
From SA-MP Wiki
IsVehicleStreamedIn
Warning: This function was added in SA-MP version 0.3. It is not available in previous versions.
Checks if a vehicle is streamed in for a player.
(vehicleid, forplayerid)
| vehicleid | The ID of the vehicle to check whether it is streamed. |
| forplayerid | The ID of the player to check whether the vehicle is streamed in for. |
| Returns | 1 if the vehicle is streamed in, otherwise 0. |
if(IsVehicleStreamedIn(100, playerid)) { SendClientMessage(playerid, COLOR_WHITE, "Vehicle 100 is streamed in for you!"); }
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- IsPlayerStreamedIn: Checks if a player is streamed in for another player.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnVehicleStreamIn: Called when a vehicle streams in for a player.
- OnVehicleStreamOut: Called when a vehicle streams out for a player.
- OnPlayerStreamIn: Called when a player streams in for another player.
- OnPlayerStreamOut: Called when a player streams out for another player.
