Jump to content

Human NPC

Not a Bug 2.0.4

MagnumSkyWolf
MagnumSkyWolf

Posted (edited)

I can't seem to get human npc to work. I copied the way i did it before but that was a good few years back so i don't know where i am going wrong

The old way was to add this 

// your npc ids here string[] npcIDs = {"7847228928", "7847228928", "7847228928"}; private void OnUseNPC(BasePlayer npc, BasePlayer player) { if (npcIDs.Contains($"{npc.userID}")) ATMCUI(player); }

as you can check in the file below

ATMSystem.cs

Edited by MagnumSkyWolf
David

Posted

I never shipped ATMSystem with this feature, what you referring to is custom change. Snippet you posted is pretty much correct except ATMCUI changed to OpenInterface. 

Please remove the file you attached from you comment since your ticket is public and anyone can download the file which is meant to be only for customers.

David

Posted

Changed Status from Pending to Not a Bug

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.9k
Customers served
Files Sold
156.7k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.