IsPlayerStreamedIn

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search


Description:
Checks if a player is streamed in for an NPC. Only nearby players are streamed in.


Parameters:

(playerid)

playerid: The ID of the player to check if streamed in.


Return Values:

true, if the player is streamed in.
false, if the player is not streamed in.


Important Note:

NPC is not streamed for itself. Thus if playerid is same as npcid, it will return false

Example

if(IsPlayerStreamedIn(playerid))
{
  //Do something !
}

Related Functions

The following functions may be helpful as they relate to this function in one way or another.