IsPlayerStreamedIn

From NPC for VCMP 0.4 Servers
Revision as of 15:44, 15 March 2022 by 137.97.101.184 (talk) (Created page with "{{Welcome| desc=Checks if a player is streamed in for an NPC. Only nearby players are streamed in.| params=<syntaxhighlight lang="lua">(playerid)</syntaxhighlight> <poem>::pla...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.



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.