NPC:IsVehicleStreamedIn

NPC:IsVehicleStreamedIn

Description:
Function NPC:IsVehicleStreamedIn checks if a vehicle is streamed in for an NPC. Only nearby vehicles are streamed in.
Function NPC:IsVehicleStreamedIn was added in 0.3a and will not work in earlier versions!
For the player version of this function, check NPC:IsPlayerStreamedIn.


Parameters:
(vehicleid)
int vehicleid The ID of the vehicle to check.


Return Values:
  • 1: The vehicle is streamed in.
  • 0: The vehicle is not streamed in.


Examples:
if(IsVehicleStreamedIn(vehicleid))
{
    // Do something
}


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