IsNPCStreamedIn
From Onset Developer Wiki
Description
Checks if stated NPC is streamed in for the player
Syntax
IsNPCStreamedIn(player, npc)
Parameters
- player
Player which you want to check - npc
NPC which you want to check
Return Value
- Returns true on success.
Example
function npcCheck(player)
local x, y, z = GetPlayerLocation(player)
local npc = CreateNPC(1, x, y, z, 0)
if IsNPCStreamedIn(player, npc) then
AddPlayerChat('npc has been created and streamed in')
end
end
See also
- GetStreamedNPC
- GetNPCLocation
- SetNPCOutline
- SetNPCPropertyValue
- GetNPCPropertyValue
- CreateNPC
- DestroyNPC
- IsValidNPC
- GetAllNPC
- GetNPCCount
- IsNPCStreamedIn
- SetNPCLocation
- GetNPCLocation
- SetNPCHealth
- GetNPCHealth
- SetNPCAnimation
- SetNPCHeading
- GetNPCHeading
- SetNPCTargetLocation
- SetNPCFollowPlayer
- SetNPCFollowVehicle
- SetNPCRagdoll
- SetNPCRespawnTime