NPC:IsVehicleStreamedIn

From SA-MP Wiki

Jump to: navigation, search


NPC:IsVehicleStreamedIn was added in SA-MP 0.3a This NPC function was added in SA-MP 0.3a and will not work in earlier versions!


Image:32px-Ambox_warning_orange.png

Note

For the player version of this function, check NPC:IsPlayerStreamedIn.


Description:

Checks if a vehicle is streamed in for an NPC. Only nearby vehicles are streamed in.


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


Return Values:

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


Example Usage:

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.

Personal tools
Navigation
Toolbox