// Client AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") // Include include('shared.lua') // Initialize function ENT:Initialize() self.Entity:PhysicsInit(SOLID_VPHYSICS) self.Entity:SetMoveType(MOVETYPE_VPHYSICS) self.Entity:SetSolid(SOLID_VPHYSICS) self.Entity:SetUseType(ONOFF_USE) self.Entity:SetNetworkedInt(0, 0) end // Numpad local function Pressed(Player, Entity, Key, IDX) if !Entity:IsValid() then return end local Command = Entity:GetEntityCommand() Command = string.Replace(Command, "!user", Player:Name()) if not (Key) then Player:ConCommand(Command..'\n') end end numpad.Register("CommandBox.Pressed", Pressed)