NPC:IsPlayerStreamedIn

NPC:IsPlayerStreamedIn

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


Parameters:
(playerid)
int playerid The ID of the player to check.


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


Examples:
if(IsPlayerStreamedIn(playerid))
{
    // Do something
}


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