for nKey, szNpc in pairs(tbCallNpc) do
if szNpc ~= "" then
TheInput:AddKeyDownHandler(nKey,function()
if TheInput:IsKeyDown(KEY_CTRL) then
local inst = Spawn(szNpc)
inst.Transform:SetPosition(TheInput:GetMouseWorldPos():Get())
elseif TheInput:IsKeyDown(KEY_SHIFT) then
local inst = Spawn(szNpc)
end
end
)
end
end