stock IsPlayerNearNPC(playerid, npcid){ new Float:x, Float:y, Float:z; FCNPC_GetPosition(npcid, x, y, z); return IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z); // Change 5.0 to the range you want.}