Function IsVehicleStreamedIn checks if a vehicle is streamed in for a player. Only nearby vehicles are streamed in (visible) for a player.
Function IsVehicleStreamedIn was added in 0.3 and will not work in earlier versions!

(vehicleid, forplayerid)
int vehicleid The ID of the vehicle to check.
int forplayerid The ID of the player to check.

Return Values:
  • 0: Vehicle is not streamed in for the player, or the function failed to execute (player and/or vehicle do not exist).
  • 1: Vehicle is streamed in for the player.

new streamedVehicleCount;
for(new v = 1; v <= MAX_VEHICLES; v++)
    if(IsVehicleStreamedIn(v, playerid))
new szString[144];
format(szString, sizeof(szString), "You currently have %i vehicles streamed in to your game.", streamedVehicleCount);
SendClientMessage(playerid, -1, szString);

Related Functions
The following functions may be useful, as they are related to this function in one way or another.

Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.