1 2 3 4 5 6 7 8 9 10 11 12 13 14
--[[ Some basics for talking to npcs ]] local reg = nrequire("sh_npcsystem.lua") local base = nrequire("sh_basenpc.lua") local npc = {} setmetatable(npc,{__index = base}) npc.Name = "Talkable NPC Base" reg.RegisterNPC(npc) return npc