From Onset Developer Wiki
Checks if stated NPC is streamed in for the player
Player which you want to check
NPC which you want to check
- Returns true on success.
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