23.01.2016, 12:47
Hey, i've began to put an npc in my gamemode which should be invisible for players, due to ID 0 getting bugged sometimes with ZCMD, so i took the Idlenpc, and placed it ongamemodeinit.
ConnectNPC("John", "npcidle");
Now, the npc spawns imiddiately nd i dont want the npc to spawn since the npc shouldn't be visible to players.
I've tried the following onplayerspawn
if(IsPlayerNPC(playerid))
{
SetPlayerInterior(playerid, 9999);
}
But unfortunately he just spawned in the game again.
Does anyone have an idea on how to fix this lol.
ConnectNPC("John", "npcidle");
Now, the npc spawns imiddiately nd i dont want the npc to spawn since the npc shouldn't be visible to players.
I've tried the following onplayerspawn
if(IsPlayerNPC(playerid))
{
SetPlayerInterior(playerid, 9999);
}
But unfortunately he just spawned in the game again.
Does anyone have an idea on how to fix this lol.