SWEP.Author = "Demivion" SWEP.Contact = "" SWEP.Purpose = "" SWEP.Instructions = "Left click to select an NPC, right click to move the NPC" SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.ViewModel = "models/weapons/v_pistol.mdl" SWEP.WorldModel = "models/weapons/w_pistol.mdl" SWEP.Primary.ClipSize = -1 SWEP.Primary.DefaultClip = -1 SWEP.Primary.Automatic = false SWEP.Primary.Ammo = "none" SWEP.Secondary.ClipSize = -1 SWEP.Secondary.DefaultClip = -1 SWEP.Secondary.Automatic = false SWEP.Secondary.Ammo = "none" local Player = LocalPlayer() if (SERVER) then AddCSLuaFile("shared.lua") ConCommand.Add("selectnpc", selectnpc) ConCommand.Add("movenpc", movenpc) end function SWEP:Reload() end function SWEP:Think() end function SWEP:PrimaryAttack() Player.ConCommand("selectnpc\n") end function SWEP:SecondaryAttack() Player.ConCommand("movenpc\n") end function selectnpc() game.ConsoleCommand("npc_select\n") end function movenpc() game.ConsoleCommand("npc_go\n") end